Skip to content

Instantly share code, notes, and snippets.

@thinkholic
thinkholic / business-models.md
Created Oct 7, 2015 — forked from ndarville/business-models.md
Business models based on the compiled list at http://news.ycombinator.com/item?id=4924647. I find the link very hard to browse, so I made a simple version in Markdown instead.
View business-models.md

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
View agile-scrum.md

[WIP]

Agile / Scrum

Agile is a project management discipline for IT/Software industry. Agile software development process is based on an incremental and iterative approach.

Scrum is a subset of Agile. It is a lightweight process framework for agile development.

A Scrum team is cross-functional, maintaining a flat team structure instead of hierarchical one. There are no project managesrs or team leaders in the traditiaonal sense. Ideal team members are 5-9 people.

View download-zip-file
var fileUrl = "http://twitter.github.com/bootstrap/assets/bootstrap.zip";
var output = "bootstrap.zip";
request({url: fileUrl, encoding: null}, function(err, resp, body) {
if(err) throw err;
fs.writeFile(output, body, function(err) {
console.log("file written!");
});
});
View Rename a Git branch
git branch -m old-branch-name new-branch-name
git push origin :old-branch-name
git push --set-upstream origin new-branch-name
@thinkholic
thinkholic / unix-mac-alias.sh
Created Feb 20, 2017
Set of UNIX-alias for mac users
View unix-mac-alias.sh
# Put these on `.bash_profile`
# GitHub
alias git l='git log --pretty=oneline'
View flow-css-oocss-example.css
.btn {}
.btn-default {}
.btn-primary {}
.btn-success {}
View flow-css-file-directory-structure-example
css/
vendor/
xyz/
xyz.min.css
sass/
header.sass
theme.sass
sidebar.sass
final.css
View flow-css-multiline-example.css
.alert {
border: 1px solid #ccc;
padding: 5px 10px;
font-size: 10px;
display: block;
}
.alert__error { color: red; }
View flow-css-simplified-example.css
// Incorrect:
#sidebar {
background-color: #fff;
background-image: (bg.png);
background-position: 0 0;
}
// Correct:
#sidebar {
background: #fff url(bg.png) repeat-x 0 0;