Skip to content

Instantly share code, notes, and snippets.

View damianesteban's full-sized avatar
🎯
Focusing

Damian Esteban damianesteban

🎯
Focusing
View GitHub Profile
// iMacro CheatSheet - Command Reference
// http://wiki.imacros.net/Command_Reference
// iMacros supports 3 types of variables:
// * The macro variables !VAR0 thru !VAR9. They can be used with the SET and ADD command inside a macro.
// * Built-in variables. They contain certain values set by iMacros.
// * User-defined variables. They are defined in-macro using the SET command.
/* Made by ciara.io for Meteor Academy */
body {
color: #333;
font-family: sans-serif;
font-size: 115%;
line-height: 24px;
}
footer {
# SYNTAX:
var pattern = new RegExp(pattern, attributes); # attributes: g (global); i (case-sensitive); m (multiline matches)
var pattern = /pattern/attributes; # same as above
# BRACKETS:
[...]: Any one character between the brackets.
[^...]: Any one character not between the brackets.
# Atom Cheatsheet.
# Project Key Bindings.
- 'cmd-shift-p': open the command palette.
- 'cmd-p' or 'cmd-t': open the fuzzy finder to find a file.
- 'cmd-b': look for a file that is already open.
- 'cmd-shift-b': search the list of files modified and untracked in your project repository.
- 'ctrl-0': open and focus the the tree view.
PlayersList = new Mongo.Collection('players');
console.log("Hello world");
if (Meteor.isClient) {
Template.leaderboard.helpers({
'player': function () {
return "Some other text"
}
});

Web Design Contract for OkDork readers (open-source)

Between [your name] and [their name]

Summary:

You ([their name]), located at [customer address] are hiring me ([your name]) located at [company address] to [design and develop a web site] for the estimated total price of [total] as outlined in our previous correspondence.

What do both parties agree to do?

@damianesteban
damianesteban / index.md
Last active August 29, 2015 14:11 — forked from rstacruz/index.md

Rails Models

Generating models

$ rails g model User

Associations

belongs_to

has_one

def fib(n)
(0..n).inject([1,0]) { |(a,b), _| [b, a+b] }[0]
end
@damianesteban
damianesteban / shit_ror_devs_say.txt
Last active August 29, 2015 14:16 — forked from ktheory/shit_ror_devs_say.txt
Shit Ruby on Rails Developers say in 2015.
Did you upgrade to Rails 4.0.4 yet?
I made a rake task for that.
2.1.0 or 2.2.0?
Did you know there's a rake task for that?
We should use Angular.js on this project.
I love the new hash syntax.
Did you upgrade to Rails 4.18 yet?
Did you see my pull request?
I hate the new hash syntax.
Did you upgrade to Rails 4.2.0 yet?
# Command Line Tools via Xcode
1. Get Xcode from App Store
2. Open Xcode
3. Go to Preferences
4. Downloads > Components > Command Line Tools > Install
# or
xcode-select --install
# Homebrew