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
| netstat -tulpn | grep :8080 |
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
| // | |
| // possible one of the solution of g()('al') challenge. | |
| // http://thechangelog.com/can-your-favorite-programming-language-score-a-goal/?utm_source=rss&utm_medium=rss&utm_campaign=can-your-favorite-programming-language-score-a-goal | |
| // | |
| function g(last){ | |
| if(typeof i =="undefined") i=-1; | |
| i++; | |
| if(last){ | |
| var s= (""+Math.pow(10,i) ).replace(/1/gi,"g").replace(/0/gi,"o")+last | |
| delete i; |
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 | |
| echo "cm320.2<br>\n"; | |
| echo "PHP and MySQL<br>\n"; | |
| ?> | |
| <h2>Hello <?php echo $_GET['name']; ?><h2> | |
| <?php | |
| $basic_height = 200; |
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
| ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl |
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
| find target_folder -type f -mtime -1 | xargs tar cvf update_`date +%Y-%m-%d`.tar.gz --exclude *.tmp |
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
| var fs = require('fs'), | |
| _ = require('underscore')._; | |
| var files = {}; | |
| _(fs.readdirSync('.')).each(function(v,k){ | |
| fs.stat(v,function(err,stat){ | |
| if(stat.isDirectory()){ | |
| _(fs.readdirSync(v)).each(function(file){ | |
| //if(file!=file.toLowerCase()){ | |
| //fs.renameSync(v+"/"+file,v+"/"+file.toLowerCase()); | |
| //} |
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
| update palm_log set palm_min = FROM_UNIXTIME(unix_timestamp(palm_time) - unix_timestamp(palm_time) % 60) |
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 patch file was generated by NetBeans IDE | |
| # It uses platform neutral UTF-8 encoding and \n newlines. | |
| --- ahDoctrineEasyEmbeddedRelationsPlugin/lib/form/ahBaseFormDoctrine.class.php | |
| +++ ahDoctrineEasyEmbeddedRelationsPlugin/lib/form/ahBaseFormDoctrine.class.php | |
| @@ -30,7 +30,8 @@ | |
| 'newFormsContainerForm' => null, // pass BaseForm object here or we will create ahNewRelationsContainerForm | |
| 'newRelationButtonLabel' => '+', | |
| 'newRelationAddByCloning' => true, | |
| - 'newRelationUseJSFramework' => 'jQuery' | |
| + 'newRelationUseJSFramework' => 'jQuery', |
NewerOlder