Here I'm trying to understand what happens when I run
./hello
#include | M[16],X=16,W,k;main(){T(system("stty cbreak") | |
| );puts(W&1?"WIN":"LOSE");}K[]={2,3,1};s(f,d,i | |
| ,j,l,P){for(i=4;i--;)for(j=k=l=0;k<4;)j<4?P=M | |
| [w(d,i,j++)],W|=P>>11,l*P&&(f?M[w(d,i,k)]=l<< | |
| (l==P):0,k++),l=l?P?l-P?P:0:l:P:(f?M[w(d,i,k) | |
| ]=l:0,++k,W|=2*!l,l=0);}w(d,i,j){return d?w(d | |
| -1,j,3-i):4*i+j;}T(i){for(i=X+rand()%X;M[i%X] | |
| *i;i--);i?M[i%X]=2<<rand()%2:0;for(W=i=0;i<4; | |
| )s(0,i++);for(i=X,puts("\e[2J\e[H");i--;i%4|| | |
| puts(""))printf(M[i]?"%4d|":" |",M[i]);W-2 |
Here I'm trying to understand what happens when I run
./hello
#include | #import <Foundation/Foundation.h> | |
| #import "sqlite3.h" | |
| typedef int64_t timestamp; | |
| NSUInteger randomNumberInRange(NSUInteger start, NSUInteger end); | |
| // Create a sample date using the ISO-8601 format. | |
| // 2013-04-23T16:29:05Z | |
| NSString* generateSampleDate(); |
| Original text here: https://whydavewhy.com/2013/08/16/loyalty-and-layoffs/ |
| #!/bin/bash | |
| # | |
| # @(#) Increment the version number in the project plist. V1.2. | |
| # Note: The project plist could be in directory | |
| # "Resources" or the project root. | |
| # Personally, I avoid clutter in the project root. | |
| # | |
| # Note: This script should be invoked from the project root! | |
| # | |
| # V1.2 Added checking for the INFOPLIST_FILE environment variable |
| function isThisCompletelyFuckedUp(context){ | |
| var els = (context || document).getElementsByTagName("*") | |
| , _word = /\S+/g | |
| , i = els.length, cache | |
| , total = 0 | |
| , l = +i | |
| for(;i--;) total += typeof els[i].className == "string" && (cache = els[i].className.match(_word)) ? cache.length : 0 |
Generate the list yourself:
$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.sdk/System/Library/Frameworks/UIKit.framework/Headers
$ grep UI_APPEARANCE_SELECTOR ./* | \
sed 's/NS_AVAILABLE_IOS(.*)//g' | \
sed 's/NS_DEPRECATED_IOS(.*)//g' | \
sed 's/API_AVAILABLE(.*)//g' | \
sed 's/API_UNAVAILABLE(.*)//g' | \
sed 's/UI_APPEARANCE_SELECTOR//g' | \
| ========================================== ========================================== | |
| TMUX COMMAND WINDOW (TAB) | |
| ========================================== ========================================== | |
| List tmux ls List ^b w | |
| New new -s <session> Create ^b c | |
| Attach att -t <session> Rename ^b , <name> | |
| Rename rename-session -t <old> <new> Last ^b l (lower-L) | |
| Kill kill-session -t <session> Close ^b & |
| //express3.0 | |
| var express = require('express'); | |
| var app = express(); | |
| app.set('port', 3000); | |
| app.set('views', __dirname + '/views'); | |
| app.set('view engine', 'jade'); | |
| app.use(express.bodyParser()); | |
| app.use(express.methodOverride()); | |
| //session & cookie |