vm:
- Static IPs cannot end in ".1" since that address is always reserved for the router. Please use another ending.
network_ip_ends_in_one: vagrant/templates/locales/en.yml at 7ef6c5d9d7d4753a219d3ab35afae0d475430cae · mitchellh/vagrant
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argv, char *argc[]) | |
{ | |
if (argv!=2) | |
{ | |
printf("Usage: %s \"threadtime_format_logcat_file\"\n",__FILE__); | |
exit(-1); | |
} |
/** | |
* documentLocationSearch2Dic | |
* -------------------------- | |
* | |
* Convert `document.location.search` string into key-values | |
* | |
* @param {String} documentLocationSearch document.location.search | |
* @return {Object} key-values of search strings | |
*/ |
vm:
network_ip_ends_in_one: vagrant/templates/locales/en.yml at 7ef6c5d9d7d4753a219d3ab35afae0d475430cae · mitchellh/vagrant
Python datetime / time conversions « SaltyCrane Blog http://www.saltycrane.com/blog/2008/11/python-datetime-time-conversions/
$ cat dm.test | |
25/12/2013,20:00:00,asdf,qwer,zxcv | |
$ sed -n -e "s_\(..\)/\(..\)/\(....\),_\3-\2-\1T_p" dm.test | |
2013-12-25T20:00:00,asdf,qwer,zxcv | |
$ date --universal --rfc-3339 ns|sed -ne "s_^\(....-..-..\)\ \(..:..:..\....\).*_\1T\2Z_p" | |
2013-11-15T19:39:42.146Z | |
$ alias date.toISOString='date --universal --rfc-3339 ns|sed -ne "s_^\(....-..-..\)\ \(..:..:..\....\).*_\1T\2Z_p"' | |
$ date.toISOString |
var a = { | |
'0': 3, | |
'3': 5, | |
'10': 8 | |
}; | |
function fn(dics, num) { | |
var resp = null; | |
var keys = Object.keys(dics); | |
console.log("----------"); |
{ | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"close_windows_when_empty": false, | |
"color_scheme": "Packages/Color Scheme - Default/Solarized (Light).tmTheme", | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"find_selected_text": true, | |
"fold_buttons": true, | |
"folder_exclude_patterns": |
Rubular: a Ruby regular expression editor and tester http://rubular.com/
Python Regex Tool http://www.pythonregex.com/
PyRegex http://www.pyregex.com/
Pythex: a Python regular expression editor
char *x; // x: a pointer to char | |
char x[3]; // x: an array[3] of char | |
char x(); // x: a function() returning char | |
char *x[3]; // x: an array[3] of pointer to char | |
char (*x)[3]; // x: a pointer to array[3] of char | |
char **x; // x: a pointer to pointer to char | |
char *x(); // x: a function() returning pointer to char | |
char *x()[3]; // x: a function() returning array[3] of pointer to char | |
char (*x[])(); // x: an array[] of pointer to function() returning char | |
char (*x())(); // x: a function() returning pointer to function() returning char |