-
Open Terminal move to your home folder:
cd ~ -
Enable git colors:
git config --global color.ui true -
Make a file called ".colors":
touch .colors -
Open .colors and paste the following:
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| function fancyAlert(msg) { | |
| jQuery.fancybox({ | |
| 'modal' : true, | |
| 'content' : "<div style=\"margin:1px;width:240px;\">"+msg+"<div style=\"text-align:right;margin-top:10px;\"><input style=\"margin:3px;padding:0px;\" type=\"button\" onclick=\"jQuery.fancybox.close();\" value=\"Ok\"></div></div>" | |
| }); | |
| } | |
| function fancyConfirm(msg,callback) { | |
| var ret; | |
| jQuery.fancybox({ |
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 | |
| function jdecoder($json_str) { | |
| $cyr_chars = array ( | |
| '\u0430' => 'а', '\u0410' => 'А', | |
| '\u0431' => 'б', '\u0411' => 'Б', | |
| '\u0432' => 'в', '\u0412' => 'В', | |
| '\u0433' => 'г', '\u0413' => 'Г', | |
| '\u0434' => 'д', '\u0414' => 'Д', | |
| '\u0435' => 'е', '\u0415' => 'Е', |
NewerOlder