Skip to content

Instantly share code, notes, and snippets.

@indexzero
indexzero / readme-outline.md
Created November 14, 2011 08:26
A quick outline of a README.md

README.md Outline

  • 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
@tsabat
tsabat / zsh.md
Last active July 7, 2024 16:56
Getting oh-my-zsh to work in Ubuntu
@gr2m
gr2m / my_fauxton_dream_contributor_workflow.md
Created January 30, 2013 11:53
I started to work on fauxton (https://github.com/cloudant-labs/couchdb/tree/fauxton/src/fauxton) lately, and I found it rather hard to contribute to it. Here's how I'd love the contributor workflow to be.

from zero to hack

$ 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.

@ricardogarfe
ricardogarfe / .travis.android.yml
Last active December 17, 2015 03:49
Android continuous integration using maven travis-ci and mvn-sdk-deployer
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
@kwhinnery
kwhinnery / howto.md
Created May 13, 2013 00:42
Execute "tishadow run" in your Titanium app directory whenever a JavaScript file changes.

Automatic TiShadow Installs

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.

Install supervisor

[sudo] npm install -g supervisor

Execute tishadow run anytime a JavaScript file changes

@willurd
willurd / Getting started with requirejs.md
Last active December 14, 2022 08:15
A short introduction to require.js

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:

  1. Dependency management
  2. Modularity
  3. 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"
@sh3raf
sh3raf / _spacing.scss
Created May 15, 2019 17:04
The perfect SASS file for generating spacing (margin and padding) helper classes.
/*
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: