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
Reverse Text | |
Lines | |
Sort Ascending | |
Sort Descending | |
Randomize | |
Reverse | |
Remove Duplicates | |
Sort and Remove Duplicates | |
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
#ifndef H_UTF8_MAPPED_UTF16_STRING_H_ | |
#define H_UTF8_MAPPED_UTF16_STRING_H_ | |
#import <Foundation/Foundation.h> | |
#import <string> | |
/* | |
* Convert a UTF-16 string to UTF-8, mapping indices to provide low-complexity | |
* range and index lookups. | |
* |
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 initWithFrame(frame) | |
if super then | |
self.pointSize = 30.0 | |
self.cols, self.rows = 10, 10 | |
self.shit = 3 | |
end | |
self |
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
/* | |
* bewbs.c: In goes the bewbs, out goes the C! | |
* By: Jean-Nicolas Jolivet,(c)2010 | |
* (.)(.) ++ptr | |
* (.){.} --ptr | |
* (.)[.] ++*ptr | |
* [.](.) -- *ptr | |
* [.][.] putchar(*ptr) | |
* {.}{.} *ptr=getchar() | |
* {.}[.] while(*ptr) { |
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
fib ↼ routine { | |
if { @ x =(0) |(@ x =(1)) } { @ last(1) } { | |
@ last( callee(@ 1 -(1), ?) +(callee(@ 1 -(2), ?))) }} | |
fib(5) { print(@) } |
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
foo = routine | |
lookup = routine | |
# All lookups after foo are put into @ | |
# so 'foo bar baz' would give you @ = (bar baz) | |
out = @0 | |
# The default implementation does a reduce() with dereferencing, something like this | |
@.prepend(this) | |
reduce(@0) | |
@2(@0[@1]) | |
out(@0) |
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 fib(x) | |
if x == 0 | |
callback(0) | |
if x == 1 | |
callback(1) | |
fib(x - 1) -> { | |
a = # | |
fib(x - 2) -> { | |
callback(a + #) |
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
foo(func | |
# ... | |
, func | |
# ... | |
) |
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
if(typeof node['description'] === 'undefined') { | |
node['description'] = teddy['description']; } |
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
- (NSImage *)image | |
{ | |
Class imgClass = [NSImage class]; | |
NSImage *imgObject = [imgClass alloc]; | |
Class selfClass = [self class]; | |
NSBundle *bundle = [NSBundle bundleForClass:selfClass]; | |
NSString *filePath = [bundle pathForResource:@"document__plus" ofType:@"png"]; | |
[allocatedObject initWithContentsOfFile:filePath]; | |
NewerOlder