Skip to content

Instantly share code, notes, and snippets.

View rememberlenny's full-sized avatar

Leonard Bogdonoff rememberlenny

View GitHub Profile
anonymous
anonymous / Swipeable-Cards-1.0.0-beta.6.markdown
Created July 8, 2014 14:18
A Pen by Captain Anonymous.
@rememberlenny
rememberlenny / Grep.js
Last active August 29, 2015 14:21 — forked from nicdaCosta/Grep.js
/*
Grep.js
Author : Nic da Costa ( @nic_daCosta )
Created : 2012/11/14
Version : 0.2
(c) Nic da Costa
License : MIT, GPL licenses
Overview:
Basic function that searches / filters any object or function and returns matched properties.
@codeschool-courses
codeschool-courses / schema.rb
Created September 14, 2011 18:32
Rails Console Extra Credit
create_table(:tweets) do |t|
t.string :message
t.string :category_name
t.string :location, :limit => 30
t.boolean :show_location, :default => false
t.integer :zombie_id
end
create_table :zombies do |z|
z.string :name
@rorra
rorra / sitemap_generator.rb
Created January 28, 2012 10:19
sitemap_generator and s3 with paperclip and aws-s3
require 'aws'
class Rake::Task
def replace &block
@actions.clear
prerequisites.clear
enhance &block
end
end
@hatefulcrawdad
hatefulcrawdad / more-than-one.css
Created August 10, 2012 19:44
More Than One Font
[class*="social foundicon-"]:before {
font-family: "SocialFoundicons";
}
@reinislejnieks
reinislejnieks / foundation-menu.php
Created September 3, 2012 17:23 — forked from awshout/foundation3-navbar-menu.php
WordPress walker for ZURB's Foundation Nav Bar classes
add_theme_support( 'menus' );
/*
http://codex.wordpress.org/Function_Reference/register_nav_menus#Examples
*/
register_nav_menus( array(
'main-menu' => 'Main Menu' // registers the menu in the WordPress admin menu editor
) );
@lambtron
lambtron / twiliocontroller.rb
Created January 10, 2013 08:39
Ruby server code that allows for CORS and sends an SMS via Twilio.
require 'rubygems'
require 'twilio-ruby'
require 'net/http'
require 'uri'
require 'json'
class TwilioController < ApplicationController
TWILIO_ACCOUNT_SID = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
TWILIO_ACCOUNT_TOKEN = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
SENDER_NUMBER = '+xxxxxxxxxx'
@maxberggren
maxberggren / basemap_tutorial.ipynb
Last active March 19, 2016 21:49
Basemap tutorial
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@henrik
henrik / fake_server.coffee
Last active May 2, 2016 22:36
Stuff extracted from writing Konacha/Mocha/Chai/Sinon unit tests.
describe "Using a fake server for Ajax", ->
server = null
beforeEach -> server = sinon.fakeServer.create()
afterEach -> server.restore()
context "when Ajax succeeds", ->
beforeEach -> respondWithJSON("/url/123", 200, '{"city": "Palm Springs"}')
it "does stuff", ->
server.respond()