Skip to content

Instantly share code, notes, and snippets.

View LaminSanneh's full-sized avatar

Lamin Sanneh LaminSanneh

View GitHub Profile
@LaminSanneh
LaminSanneh / JSXSpreadAttributes.md
Created December 23, 2017 10:28 — forked from sebmarkbage/JSXSpreadAttributes.md
JSX Spread Attributes

JSX Spread Attributes

If you know all the properties that you want to place on a component a head of time, it is easy to use JSX:

  var component = <Component foo={x} bar={y} />;

Mutating Props is Bad, mkay

@LaminSanneh
LaminSanneh / pedantically_commented_playbook.yml
Created November 28, 2017 10:19 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@LaminSanneh
LaminSanneh / application.controller.js
Created November 3, 2015 14:24
Sitepoint Tab Switcher
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
/*jslint undef: true, nomen: true, eqeqeq: true, plusplus: true, newcap: true, immed: true, browser: true, devel: true, passfail: false */
/*global window: false, readConvertLinksToFootnotes: false, readStyle: false, readSize: false, readMargin: false, Typekit: false, ActiveXObject: false */
var dbg = (typeof console !== 'undefined') ? function(s) {
console.log("Readability: " + s);
} : function() {};
/*
* Readability. An Arc90 Lab Experiment.
* Website: http://lab.arc90.com/experiments/readability
@LaminSanneh
LaminSanneh / My Vagrant File Laravel 4 Development, with complementing shell provisioner below
Last active August 29, 2015 13:57
My Vagrant File Laravel 4 Development, with complementing shell provisioner below
Giving credit to Philip brown of Culttt
at http://culttt.com/2013/06/17/setting-up-vagrant-with-laravel-4/
Do not include this file.
Just use the two below and run vagrant provision
@LaminSanneh
LaminSanneh / Laravel redirect to shortcuts
Created November 9, 2013 18:23
Laravel redirect to shortcuts
Redirect::route('route_name', options) //redirects you to a named route with options as an array
@LaminSanneh
LaminSanneh / 0_reuse_code.js
Created November 9, 2013 18:17
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
@LaminSanneh
LaminSanneh / Css3 transition rotate snippet
Created October 17, 2013 20:48
Css3 transition rotate snippet
/*Note that this is not regular css, we are using scss*/
.logo-image{
/*Put easing and time duration here*/
-webkit-transition: all 0.5s ease-in-out;
-moz-transition: all 0.5s ease-in-out;
-o-transition: all 0.5s ease-in-out;
-ms-transition: all 0.5s ease-in-out;
&:hover{
@LaminSanneh
LaminSanneh / Ruby on Rails : Useful Commands
Created July 24, 2013 13:16
Ruby on Rails : Useful Commands
Ruby on Rails Useful Commands
//Make sure you have ruby installed to be able to run these commands
gem install rails -------- This installs rails for you
gem install rails-api -------- This installs rails api gem for creating a restful api oriented app
rails new appName -------- Creates a new rails application in the
folder with the same name as the app
@LaminSanneh
LaminSanneh / Useful Command Line Commands
Created July 24, 2013 07:47
Useful Command Line Commands
//***************** Useful Command Line Commands ***********//
MAC PC
Ctrl(Control) + a -------- Move to the beggining of the current command
Ctrl(Control) + e -------- Move to the end of the current command
echo ~ -------- print out our home directory
clear -------- cleans out your terminal of all previous commands