Skip to content

Instantly share code, notes, and snippets.

View neilang's full-sized avatar
😎
Just being a cool guy

Neil Ang neilang

😎
Just being a cool guy
View GitHub Profile
@neilang
neilang / snippets.cson
Created September 30, 2016 00:21
Atom > snippets
'.source.ruby':
'frozen_string_literal':
'prefix': 'freeze'
'body': "# frozen_string_literal: true\n"
@neilang
neilang / keybase.md
Last active August 29, 2015 13:56
keybase.md

Keybase proof

I hereby claim:

  • I am neilang on github.
  • I am neilang (https://keybase.io/neilang) on keybase.
  • I have a public key whose fingerprint is B6E7 1744 7E79 38E8 7690 98D0 201E 115E CBF8 5145

To claim this, I am signing this object:

<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exslt="http://exslt.org/common"
xmlns:date="http://exslt.org/dates-and-times">
<xsl:output method="html" encoding="utf-8" indent="no" media-type="text/html" />
<xsl:template match="/">
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exslt="http://exslt.org/common"
xmlns:date="http://exslt.org/dates-and-times">
<xsl:output method="html" encoding="utf-8" indent="no" media-type="text/html" />
<xsl:template match="/">
#include <stdio.h>
#define assuming if
#define otherwise else
int main(int argc, const char * argv[])
{
int neil, awesome;
neil = awesome = 1;
# RailsAdmin config file. Generated on April 04, 2013 19:54
# See github.com/sferik/rails_admin for more informations
RailsAdmin.config do |config|
################ Global configuration ################
# Set the admin name here (optional second array element will appear in red). For example:
config.main_app_name = ['Issue1591', 'Admin']
@neilang
neilang / arduino-morse.c
Created May 7, 2012 11:23
Never gonna give you up - morse code
int ledPin = 13;
#define DOT_LENGTH 250
// A dash is equal to three dots
#define DASH_LENGTH (DOT_LENGTH * 3)
// The space between parts of the same letter is equal to one dot
#define PART_PAUSE DOT_LENGTH
// The space between two letters is equal to three dots
#define LETTER_PAUSE ((DOT_LENGTH * 3) - PART_PAUSE)
// The space between two words is equal to seven dots
@neilang
neilang / NASpinSegue.m
Created December 4, 2011 04:52
Spin Segue using CABasicAnimation
#import "NASpinSegue.h"
#import <QuartzCore/QuartzCore.h>
#define SPINS 3.0f
#define DURATION 0.5f
#define TRANSITION_OUT_KEY @"transition out"
#define TRANSITION_IN_KEY @"transition in"
#define TRANSITION_IDENT @"transition type"
@implementation NASpinSegue
@neilang
neilang / NASpinSegue.m
Created December 4, 2011 04:01
Spin Segue
#import "NASpinSegue.h"
@implementation NASpinSegue
- (void)perform{
UIViewController *sourceViewController = (UIViewController *)self.sourceViewController;
UIViewController *destinationViewController = (UIViewController *)self.destinationViewController;