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 os | |
| os.chdir("src") | |
| for fl in filter(lambda f: os.path.isfile(f), os.listdir("./")): | |
| print("Compiling: " + fl) | |
| os.system("lessc " + fl + " > ../css/" + fl[:-5] + ".css") |
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 = input("w: ") | |
| b = input("h: ") | |
| print a * b |
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
| from __future__ import print_function | |
| import sys | |
| from xlrd import open_workbook | |
| wb = open_workbook('EligibleUSmemberForTAworkshop.xlsx') | |
| values = [] | |
| for s in wb.sheets(): | |
| for row in range(s.nrows): | |
| values.append(s.cell(row, int(sys.argv[1])).value) |
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
| n = 1 | |
| sent = 1 | |
| def n_divide(): | |
| global n | |
| n = (n/2) | |
| def n_add(): | |
| global n | |
| n = ((3 * n) + 1) |
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
| button.addActionListener(new ActionListener() { | |
| public void actionPerformed(ActionEvent e) { | |
| System.out.println("Hello world"); | |
| } | |
| }); |
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
| X is an array of size 3 in which each element is a pointer to a function that takes no arguments and returns a pointer to a character array of size 5. |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| char* file_to_string(FILE *fp); | |
| int count_delim(char *str); | |
| void tokenize(int *indices, char *str); | |
| void isort(int* arr, int len); | |
| #define F(x) void func_##x() {printf("In function %d\n",x);} |
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
| /* | |
| * The only requirement for running the program, | |
| * is that the input file is terminated by a ',' | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| char* file_to_string(FILE *fp); |
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(a,b): | |
| print a; | |
| if a < 100: | |
| fib(b, a + b) | |
| return | |
| else: | |
| return | |
| return | |
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
| RNode Object ( [action:RNode:private] => Closure Object ( ) [children:RNode:private] => Array ( [menu] => RNode Object ( [action:RNode:private] => Closure Object ( ) [children:RNode:private] => Array ( [item] => RNode Object ( [action:RNode:private] => [children:RNode:private] => [var_child:RNode:private] => RNode Object ( [action:RNode:private] => Closure Object ( [parameter] => Array ( [$args] => ) ) [children:RNode:private] => [var_child:RNode:private] => ) ) ) [var_child:RNode:private] => RNode Object ( [action:RNode:private] => Closure Object ( [parameter] => Array ( [$args] => ) ) [children:RNode:private] => [var_child:RNode:private] => ) ) [json] => RNode Object ( [action:RNode:private] => [children:RNode:private] => Array ( [menu] => RNode Object ( [action:RNode:private] => [children:RNode:private] => Array ( [item] => RNode Object ( [action:RNode:private] => [children:RNode:private] => [var_child:RNode:private] => RNode Object ( [action:RNode:private] => Closure Object ( [parameter] => Array ( [$args |