- Header and a Brief description (should match package.json)
- Example (if applicable)
- Motivation (if applicable)
- API Documentation: This will likely vary considerably from library to library.
- Installation
- Tests
- Contributors
- License
Prereq:
apt-get install zsh
apt-get install git-core
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
$ git clone https://github.com/couchdb/fauxton
$ cd fauxton
$ yeoman install
$ yeoman server
That will start fauxton at http://localhost:3501 and connect automatically to my local couch at http://localhost:5984. Thanks to yeoman, changes in HTML / CSS / JS are visible directly thanks to live reload.
language: java | |
jdk: oraclejdk7 | |
env: | |
matrix: | |
# android-16 is always included | |
- ANDROID_SDKS=android-10 ANDROID_TARGET=android-10 ANDROID_ABI=armeabi | |
before_install: | |
# Install base Android SDK | |
- sudo apt-get update -qq |
Execute "tishadow run" in your Titanium app directory whenever a JavaScript file changes. Edit your JS files in a text editor, save, then switch to the test device or simulator. Profit.
[sudo] npm install -g supervisor
This is a small collection of scripts showing how to use require.js. It's only one of several ways of setting up a require.js project, but it's enough to get started.
At its core, require.js is about three things:
- Dependency management
- Modularity
- Dynamic script loading
The following files show how these are achieved.
var os_type = Titanium.Platform.getOsname() == 'android'?'android':'ios'; | |
var xhr = Titanium.Network.createHTTPClient(); | |
var getNotCached = function(url){ | |
var timestamp = new Date().getTime(); | |
if (url.indexOf('?') == -1) { | |
return url + '?nocache=' + timestamp ; | |
} | |
return url + '&nocache=' + timestamp ; |
## | |
# Creates an alias called "git hist" that outputs a nicely formatted git log. | |
# Usage is just like "git log" | |
# Examples: | |
# git hist | |
# git hist -5 | |
# git hist <branch_name> | |
# git hist <tag_name> -10 | |
## | |
git config --global alias.hist "log --pretty=format:'%C(yellow)[%ad]%C(reset) %C(green)[%h]%C(reset) | %C(red)%s %C(bold red){{%an}}%C(reset) %C(blue)%d%C(reset)' --graph --date=short" |
/* | |
This .scss file will provide a full list of helper classes for margins and paddings for your HTML. | |
My suggestion is to use in rems instead of pixels, but you can easily change the values in px. | |
You can customize the $prefix variable to avoid issues with frameworks or decide to remove it at all, it's up to you. | |
The "m" and "p" letters inside classes are for margin and padding respectively. Same logic is used for $sides keys ("t" for top, "l" for left and so on..). | |
The generated classes follow the examples below: | |
for MARGIN: |