Skip to content

Instantly share code, notes, and snippets.

View ladanazita's full-sized avatar

Ladan Nasserian ladanazita

View GitHub Profile
@sperand-io
sperand-io / instructions.md
Last active December 5, 2016 19:06
What Is Segment Sending on My Behalf?

If you have node installed, you can clone the repo for whichever integration you'd like to use (say GA) then install segmentio-facade:

git clone https://github.com/segmentio/integration-google-analytics.git
cd integration-google-analytics
npm install segmentio-facade

Then create a new file in the top level of the directory with the script from this gist.

@RobAWilkinson
RobAWilkinson / Api_lab.md
Last active August 29, 2015 14:21
Rails API creation lab

Api Lab

###Your mission for todo is to create an api that returns sneakers and stores

I have a tool that will check your test coverage I want to see a high percentage This needs to be on github

I'm going to be a client and give you a spec sheet Here is your spec sheet.

data = {
name: "Snoogums",
weight: "130lb",
taxonomy: {
genus: "Boa",
species: "constrictor imperator"
},
location: "Brazil"
}

#WDI Installfest (Mac)

Please check your OS X version before beginning. (Click the Apple menu and choose About this Mac.) This set of steps should work for Mavericks or Yosemite; if you're on another version, let an instructor know.

##XCode

Open up your App store and install XCode

@thebucknerlife
thebucknerlife / authentication_with_bcrypt_in_rails_4.md
Last active July 10, 2024 00:17
Simple Authentication in Rail 4 Using Bcrypt

#Simple Authentication with Bcrypt

This tutorial is for adding authentication to a vanilla Ruby on Rails app using Bcrypt and has_secure_password.

The steps below are based on Ryan Bates's approach from Railscast #250 Authentication from Scratch (revised).

You can see the final source code here: repo. I began with a stock rails app using rails new gif_vault

##Steps

@hofmannsven
hofmannsven / README.md
Last active July 16, 2024 01:30
Git CLI Cheatsheet
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active July 17, 2024 14:20
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@nikcub
nikcub / README.md
Created October 4, 2012 13:06
Facebook PHP Source Code from August 2007
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')