Skip to content

Instantly share code, notes, and snippets.

View faizaanshamsi's full-sized avatar

Faizaan Shamsi faizaanshamsi

View GitHub Profile
@faizaanshamsi
faizaanshamsi / Aliasing.md
Last active February 13, 2017 15:30
Creating Aliases for ZSH
  1. Open your .oh-my-zsh file in Sublime: subl ~/.oh-my-zsh

  2. Find lib/aliases.zsh

  3. Add aliases in the following manner: alias [shortcut]='[what you would type into terminal]'


alias ohmyzsh='subl ~/.oh-my-zsh'
alias programs='cd ~/dropbox/programs'
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
actions: {
derp() {
console.log('ha');
}
});
@faizaanshamsi
faizaanshamsi / gs_email.txt
Created June 16, 2016 17:17
Goldman Sachs Email Flags
Goldman's list:
a sure {bet}|{thing}
adjust your account|losses|profits
against my expressed[?] wishes
answer {your}|{the} %ANY%[0\,3] phone
@faizaanshamsi
faizaanshamsi / unordered_json.rb
Created April 25, 2016 18:37
Compare Unordered JSON
module Helpers
module CompareJSON
def self.returning(value)
yield(value)
value
end
def self.order_and_sort_json(object, deep = true)
if object.is_a?(Hash)
# recursively sort the hash
@faizaanshamsi
faizaanshamsi / Attribute
Last active January 11, 2016 17:38
Circle CI for Elixir
Taken and modified from: https://gist.github.com/joakimk/48ed80f1a7adb5f5ea27
* line 4 and 13 of circle.yml reference a script/ci structure. Modify to suit.
@faizaanshamsi
faizaanshamsi / css_resources.md
Created December 30, 2013 15:51 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@faizaanshamsi
faizaanshamsi / 0_reuse_code.js
Created December 30, 2013 15:51
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
@faizaanshamsi
faizaanshamsi / gist:8049209
Created December 20, 2013 01:40
pgexercise.com exercises completed.
http://pgexercises.com/questions/basic/selectall.html
http://pgexercises.com/questions/basic/selectspecific.html
http://pgexercises.com/questions/basic/where.html
http://pgexercises.com/questions/basic/where2.html
http://pgexercises.com/questions/basic/where3.html
http://pgexercises.com/questions/basic/where4.html
@faizaanshamsi
faizaanshamsi / .rspec
Created December 5, 2013 20:46
Pig Latin Translator and Tests
--color
@faizaanshamsi
faizaanshamsi / pig.rb
Created December 5, 2013 19:53
pig latin translator
class PigLatinTranslation
def initialize(phrase)
@phrase = phrase
end
#provide the pig latin translation
def translate
@words = words
@words.collect! do |word|
if starts_with_vowel?(word)