This file contains hidden or 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 <Cocoa/Cocoa.h> | |
| @interface HurrDurr : NSObject | |
| { | |
| NSString *caption; | |
| } | |
| - (NSString*) caption; |
This file contains hidden or 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
| % TeX usually assumes that . marks the end of a sentence. | |
| % To fix the spacing for a non–sentence-terminating full stop: | |
| ... Smith et al.\ claim that... | |
| % A full stop after a capital letter is assumed to be part of | |
| % an abbreviation. To fix this: | |
| ... from Diablo II\@. This is... | |
| % From: http://john.regehr.org/latex/ |
This file contains hidden or 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
| \def\loremipsum{Lorem ipsum dolor sit amet, consectetur adipiscing elit. | |
| Curabitur pharetra odio id neque. Vestibulum augue lorem, fermentum at, | |
| sollicitudin sit amet, mattis eu, sapien. Ut erat lorem, condimentum | |
| condimentum, fringilla et, pellentesque eget, sem. Mauris vel lectus sit amet | |
| urna aliquet adipiscing. Vestibulum ante ipsum primis in faucibus orci luctus | |
| et ultrices posuere cubilia Curae; Mauris ipsum ante, fringilla a, pharetra | |
| auctor, sagittis sit amet, lacus. Nulla suscipit, nisi tristique eleifend | |
| lacinia, lacus felis placerat nibh, non volutpat nibh erat ac magna. Donec | |
| blandit, urna in ornare convallis, purus velit dignissim nulla, quis egestas | |
| neque felis non odio. Morbi magna nulla, eleifend vitae, tempus vitae, |
This file contains hidden or 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
| $ git remote add -f user git://github.com/user/repo.git | |
| $ git checkout -b user/repo | |
| $ git pull user master:b4dc0ff33 | |
| ... | |
| $ git checkout master | |
| $ git merge user/master | |
| warning: refname 'user/master' is ambiguous. | |
| warning: refname 'user/master' is ambiguous. | |
| Updating 0123456..b4dc0ff | |
| Fast forward |
This file contains hidden or 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
| lol hi |
This file contains hidden or 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
| A small selection of printable character ranges (UTF-8) | |
| --------- ----- ----------- | |
| range total description | |
| (hex) (dec) | |
| --------- ----- ----------- | |
| ONE BYTE (0000-007F) | |
| 0021-0025 5 basic latin (excluding & < > and space) |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Determine the current year in the Chinese sexagenary cycle. | |
| """ | |
| import datetime | |
| EN_NAMES = (('Yang', 'Yin'), | |
| ('Wood', 'Wood', 'Fire', 'Fire', 'Earth', 'Earth', |
This file contains hidden or 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
| v4sw6YUHChw4ln6pr5POck4ma5u6MLw2DXm7l5Ui2e6t4Mb6GADen5+7g4ORAPa2Xs4MSr2p-6 |
This file contains hidden or 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 <Cocoa/Cocoa.h> | |
| @interface BlagnargView : NSView { | |
| } | |
| @end |
This file contains hidden or 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
| -- My first ever useful haskell script: | |
| -- a solution to the first problem on projecteuler.net (easy) | |
| -- <spoiler> | |
| euler001 :: Int | |
| euler001 = sum [x | x <- [1..999], mod x 3 == 0 || mod x 5 == 0] | |
| -- </spoiler> |