Skip to content

Instantly share code, notes, and snippets.

View faizaanshamsi's full-sized avatar

Faizaan Shamsi faizaanshamsi

View GitHub Profile
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 / application.controller.js
Last active December 14, 2015 22:58
Yield to Inverse
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
derp: false,
actions: {
underp() {
this.toggleProperty('derp');
}
@faizaanshamsi
faizaanshamsi / README.md
Last active November 20, 2015 04:31 — forked from joakimk/README.md
CircleCI elixir build example

This runs a build for a small elixir (phoenix) project in about 40 seconds by caching as much of the compiled files as possible.

We've been using this for months in multiple projects without any issues. Please ping be if there is any issues with this script and I'll update it.

It should be generic enough to work on any elixir app using mix.

If you have a elixir_buildpack.config, then enable that section in the build script to keep versions in sync!

@also_valid_attrs %{email: "fas@nd.com", role: "client", is_financial_professional: true, password: "password"}
setup do
changeset = User.changeset(%User{}, @also_valid_attrs)
user = Repo.insert! changeset
conn = conn() |> put_req_header("accept", "application/vnd.api+json")
conn = Guardian.Plug.api_sign_in(conn, user)
{:ok, conn: conn, user: user}
end
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
wizards: [
{ name: 'Faizaan' },
{ name: 'Tchen' },
{ name: 'Vikram' }
],
@faizaanshamsi
faizaanshamsi / application.controller.js
Last active September 11, 2015 05:34
Component Authorization Helpers
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
@faizaanshamsi
faizaanshamsi / ember_challenge.md
Last active August 29, 2015 14:14
Ember Challenge

Coding Challenge

Part 1:

Your task is to build an app in Ember with the following requirements:

  1. The application should have a Rails backend and an Ember frontend using Ember CLI

  2. The app should have at least one model with working index, show, new, and edit pages. Optional: Add a second related model