This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias hostname="hostname | cowsay" | |
alias whoami="whoami | cowsay" | |
alias pwd="pwd | cowsay" | |
alias date="date | cowsay" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
plush = "!sh -c 'git pull --rebase && git push'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on " Syntax highlight | |
" set backspace=2 | |
set backspace=indent,eol,start " Fixes backspace on unix systems | |
set tabstop=2 " set tab width | |
set shiftwidth=2 | |
set expandtab " spaces instead of tabs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define iNeedYourClothes alloc | |
#define andYourBoots init | |
#define hastaLaVistaBaby release | |
NSObject *obj = [[NSObject iNeedYourClothes] andYourBoots]; | |
// ... | |
[obj hastaLaVistaBaby]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "NASpinSegue.h" | |
@implementation NASpinSegue | |
- (void)perform{ | |
UIViewController *sourceViewController = (UIViewController *)self.sourceViewController; | |
UIViewController *destinationViewController = (UIViewController *)self.destinationViewController; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define assuming if | |
#define otherwise else | |
int main(int argc, const char * argv[]) | |
{ | |
int neil, awesome; | |
neil = awesome = 1; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="html" encoding="utf-8" indent="no" media-type="text/html" /> | |
<xsl:template match="/"> | |
<xsl:apply-templates select="//api-v1-entities-event-item" /> | |
</xsl:template> |
OlderNewer