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 | |
| from datetime import date | |
| for file in os.listdir('.'): | |
| print( file, date.fromtimestamp( os.stat(file).st_mtime )) |
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 datetime import date | |
| string = 'vpx_1021094819038401_051911'.split('_')[-1] | |
| print(date(int(str[4:]), int(str[:2]), int(str[2:4]))) |
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 datetime import date | |
| string = 'vpx_1021094819038401_051911' | |
| parts = string.split('_') | |
| dateportion = parts[-1] | |
| year = int(str[4:]) | |
| month = int(str[:2]) | |
| day = int(str[2:4]) |
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
| void swap (int * y, int * y) | |
| { | |
| if (*x != *y) | |
| { | |
| *x ^= *y; | |
| *y ^= *x; | |
| *x ^= *y; | |
| } | |
| } |
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> | |
| void swap_bytes( char * x, char * y ) | |
| { | |
| if ( *x != *y ) | |
| { | |
| *x ^= *y; | |
| *y ^= *x; | |
| *x ^= *y; | |
| } |
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
| static int is_prime( unsigned int x ) | |
| { | |
| if ( x == 1 ) return false; | |
| else if ( x < 4 ) return true; | |
| else if ( x % 2 == 0 ) return false; | |
| else if ( x < 9 ) return true; | |
| else if ( x % 3 == 0 ) return false; | |
| else | |
| { | |
| double r; |
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
| for a in [1, 2, 'hello', 2**10]: | |
| print(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
| %%$@_$^__#)^)&!_+]!*@&^}@[@%]()%+$&[(_@%+%$*^@$^!+]!&_#)_*}{}}!}_]$[%}@[{_@#_^{* | |
| @##&{#&{&)*%(]{{([*}@[@&]+!!*{)!}{%+{))])[!^})+)$]#{*+^((@^@}$[**$&^{$!@#$%)!@(& | |
| +^!{%_$&@^!}$_${)$_#)!({@!)(^}!*^&!$%_&&}&_#&@{)]{+)%*{&*%*&@%$+]!*__(#!*){%&@++ | |
| !_)^$&&%#+)}!@!)&^}**#!_$([$!$}#*^}$+&#[{*{}{((#$]{[$[$$()_#}!@}^@_&%^*!){*^^_$^ | |
| ]@}#%[%!^[^_})+@&}{@*!(@$%$^)}[_!}(*}#}#___}!](@_{{(*#%!%%+*)^+#%}$+_]#}%!**#!^_ | |
| )@)$%%^{_%!@(&{!}$_$[)*!^&{}*#{!)@})!*{^&[&$#@)*@#@_@^_#*!@_#})+[^&!@*}^){%%{&#@ | |
| @{%(&{+(#^{@{)%_$[+}]$]^{^#(*}%)@$@}(#{_&]#%#]{_*({(])$%[!}#@@&_)([*]}$}&${^}@(% | |
| (%[@%!}%*$}(*@)}){+@(%@*$&]*^*}*]&$[}*]%]+*}^!}*$^^_()#$^]++@__){&&+((#%+(&+){)$ | |
| %&&#($[[+##*%${)_!+{_[})%++)$#))]]]$]@]@($+{&%&%+!!!@]_]+])^*@$(@#${}}#}{%}#+{(@ | |
| #__+{{]${]!{(%${%%^)(_*_@+)$]$#_@$)]](}{}$(}*%+!}#+)$%$}+#@*&^{##}+@(%[*@_}{(^]^ |
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
| 7aaf7151:1 4f545e21:1 | |
| Images size (bytes) 281004 279974 | |
| Image files 34 34 | |
| Time to Load (ms) 8508 6202 | |
| JS files 21 21 | |
| Time to First Byte (ms) 2915 1020 | |
| JS size (bytes) 256938 296064 | |
| TTL - TTFB (ms) 5593 5182 | |
| CSS files 4 4 | |
| CSS size (bytes) 14388 14387 |
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
| <?php | |
| require_once 'modules/constituent/data/cons_group.data.php'; | |
| class Constituent_Scott_Controller extends Blue_Controller_Base | |
| { | |
| public function processRequest(Blue_Controller_Request $request, Blue_Controller_Response $response) | |
| { | |
| $group = new cons_group(); | |
| $response->setHeader('Content-Type', 'text/plain'); |