Skip to content

Instantly share code, notes, and snippets.

View ralphcrisostomo's full-sized avatar

Ralf Crisostomo ralphcrisostomo

  • Goodstuff
  • Australia
View GitHub Profile

(Several of these git examples have been extracted from the book 'Pragmatic guide to GIT' of Travis Swicegood )

Git tips

Global git user

git config --global user.name "Fernando Guillen"
git config --global user.email "fguillen.mail+spam@gmail.com"

Repository git user

cd /develop/myrepo

@ralphcrisostomo
ralphcrisostomo / ember-learning-notes.md
Last active August 29, 2015 14:22
Ember Learning Notes

Ember Learning Notes

Tips

  • Use Invoke to run a method on every object in an array

      collection.invoke('set','isSelected', true);
    

Ember

@ralphcrisostomo
ralphcrisostomo / Bash Commands.md
Last active November 11, 2021 03:25
Bash Commands

Bash Commands

Initial Setup

sudo apt-update
sudo apt-upgrade

Source List

@ralphcrisostomo
ralphcrisostomo / raspberry-pi-setup.md
Last active March 28, 2016 07:27
raspberry pi setup

Raspberry Pi Setup

install

/etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
@ralphcrisostomo
ralphcrisostomo / javascript_resources.md
Last active August 29, 2015 14:20 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@ralphcrisostomo
ralphcrisostomo / 0_reuse_code.js
Last active August 29, 2015 14:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ralphcrisostomo
ralphcrisostomo / render_partial.haml
Last active August 29, 2015 14:03
Outside rails, a partial render function inside haml file.
-# --------------------
-# RENDER PARTIAL FUNCTION
-# Render function inside haml file
-# --------------------
- def render(partial) Haml::Engine.new(File.read("app/templates/#{partial}")).render end
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store?
ehthumbs.db
@ralphcrisostomo
ralphcrisostomo / timezone.json
Created June 30, 2014 11:31
timezone list json key value
[
{
"zone": "Pacific/Midway",
"gmt": "(GMT-11:00)",
"name": "Midway Island"
},
{
"zone": "US/Samoa",
"gmt": "(GMT-11:00)",
"name": "Samoa"
@ralphcrisostomo
ralphcrisostomo / countries.json
Created June 30, 2014 07:04
countries json list
[
[
"Afghanistan",
"AF"
],
[
"Aland Islands",
"AX"
],
[