start new:
tmux
start new with session name:
tmux new -s myname
/* | |
* object.watch polyfill | |
* | |
* 2012-04-03 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public Domain. | |
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
*/ |
def sigmoid(X): | |
'''Compute the sigmoid function ''' | |
#d = zeros(shape=(X.shape)) | |
den = 1.0 + e ** (-1.0 * X) | |
d = 1.0 / den | |
return d |
System directories
Method | Result |
---|---|
Environment.getDataDirectory() | /data |
Environment.getDownloadCacheDirectory() | /cache |
Environment.getRootDirectory() | /system |
External storage directories
getAllLinks.js
getAllLinks(element) - returns array of all UrlLinks in Document
findAndReplaceLinks(searchPattern,replacement) - changes all matching links in Document
changeCase.js - Document add-in, provides case-change operations in the add-in Menu.
onOpen - installs "Change Case" menu
_changeCase - worker function to locate selected text and change text case. Case conversion is managed via callback to a function that accepts a string as a parameter and returns the converted string.
helper functions for five cases
//--------------------- Copyright Block ---------------------- | |
/* | |
PrayTime.cs: Prayer Times Calculator (ver 1.2) | |
Copyright (C) 2007-2010 PrayTimes.org | |
C# Code By: Jandost Khoso | |
Original JS Code By: Hamid Zarrabi-Zadeh | |
License: GNU LGPL v3.0 |
# -*- coding: UTF-8 -*- | |
import sqlite3 | |
from sqlite3 import Error | |
import urllib | |
import HTMLParser | |
import html2text | |
import re | |
from os import listdir | |
from os.path import isfile, join | |
from collections import Counter |