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
for a1 in 0..<4 { | |
for a2 in 0..<4{ | |
for a3 in 0..<4 { | |
for a4 in 0..<4 { | |
for a5 in 0..<4 { | |
for a6 in 0..<4 { | |
for a7 in 0..<4 { | |
for a8 in 0..<4 { | |
for a9 in 0..<4 { |
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
S-> a|^|(T) | |
T-> ST' | |
T'->,ST'|ε | |
First(S) = {a, ^, (} | |
First(T) = {a, ^, (} | |
First(T') = {, , ε} | |
Follow(S) = {, , $} | |
Follow(T) = {) , , , $} |
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 <objc/runtime.h> | |
#import <objc/message.h> | |
@implementation AppDelegate | |
id (*my_msgSend)(id, SEL, ...) = (void *)objc_msgSend; | |
void (*my_msgSend_)(id, SEL, ...) = (void *)objc_msgSend;; | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
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
// we disguise pointers so that programs like 'leaks' forget about these references | |
#define DISGUISE(O) (~(uintptr_t)(O)) | |
#if DEPLOYMENT_TARGET_MACOSX | |
#define NUM_EXTERN_TABLES 8 | |
#define EXTERN_TABLE_IDX(O) (((uintptr_t)(O) >> 8) & 0x7) | |
#elif DEPLOYMENT_TARGET_EMBEDDED || DEPLOYMENT_TARGET_EMBEDDED_MINI || DEPLOYMENT_TARGET_WINDOWS || DEPLOYMENT_TARGET_LINUX | |
#define NUM_EXTERN_TABLES 1 | |
#define EXTERN_TABLE_IDX(O) 0 | |
#else |
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
#!/bin/bash | |
## Mini-Xcode: XCode 5 | |
MIN_VERSION="7.0" | |
# set default output folder is build | |
OUTPUT_FOLDER=${PREFIX-build} | |
# set default compiler | |
CC=${CC-$(xcrun --find gcc)} |
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> | |
#include <string.h> | |
int result_arr[100]; | |
short flag_arr[100]; | |
int result_cnt; | |
void | |
full_permutation(int arr[], int len_arr, int now_pos) | |
{ |
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> | |
#include <stdlib.h> | |
#include <string.h> | |
#define MAXN 65536 | |
int DD[5][2] = {{0, 0}, {0, 1}, {0, -1}, {-1, 0}, {1, 0}}; | |
struct _queue_struct | |
{ |