Skip to content

Instantly share code, notes, and snippets.

View krishaamer's full-sized avatar
💭
:)

Kris Haamer krishaamer

💭
:)
View GitHub Profile
class Service
class << self
def meta_def(name, &block)
define_singleton_method(name, &block)
end
def responses(hash)
hash.each do |method_name, result|
meta_def(method_name) do
result
@krishaamer
krishaamer / app.js
Created December 27, 2012 20:35 — forked from nrstott/app.js
var bogart = require('bogart');
var Q = require('promised-io/lib/promise');
var mongoose = require('mongoose');
var PostSchema = new mongoose.Schema({
title: String,
body: String,
comments: [ CommentSchema ]
});
@krishaamer
krishaamer / app.js
Created January 7, 2013 21:15 — forked from nrstott/app.js
var bogart = require('bogart');
var Q = require('promised-io/lib/promise');
var mongoose = require('mongoose');
var PostSchema = new mongoose.Schema({
title: String,
body: String,
comments: [ CommentSchema ]
});
@krishaamer
krishaamer / index.html
Created April 6, 2013 18:25
A CodePen by Kris Haamer. "Bounce" Fixed
<p id="scroll">ARCHITECTURE</p>
<div id="e">NU</div>
@krishaamer
krishaamer / Shadows
Created July 4, 2015 09:12
Shadow Effects for UITableView Cells
// GuestCellView.swift
import UIKit
import DynamicColor
class GuestCellView:UIView {
override func awakeFromNib() {
//applyCustomShadow(self)
@krishaamer
krishaamer / 0_reuse_code.js
Last active August 29, 2015 14:24
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
Verifying that +krishaamer is my blockchain ID. https://onename.com/krishaamer
add_shortcode('register', function () {
if(!function_exists("pll_current_language"))
return;
if(pll_current_language() == "pt") {
$post = get_post(493);
$register_form_id = "tickets_pt";
} else {
$post = get_post(495);
/**
* Create HTML list of pages.
*
* @since 1.0
* @uses Walker_Page
*/
class Rational_Walker_Page extends Walker_Page {
/**
* @see Walker_Page::start_lvl()
* @since 1.0
I am attesting that this GitHub handle krishaamer is linked to the Tezos account tz1SWnYksB92csFhauJbPt4eBcu32nkwyCoQ for tzprofiles
sig:edsigtnwjVthTAWHpbBP62GPpmM2nuimEDiteBvWMA2UkiMBBcx2t3wTkUNe65fR4ky3qGZmuQDbrLicnTTJ8ZJ7HL4JuBLhJcR