source: http://www.dreamincode.net/forums/topic/78802-martyr2s-mega-project-ideas-list/ Re: Martyr2's Mega Project Ideas List! Post icon Posted 30 December 2008 - 04:23 PM
POPULAR Martyr2’s Mega Project List Created by Martyr2 (DIC Mentor)
Numbers
| <?php | |
| class MM_Notifications { | |
| private $usr_mentor; | |
| private $usr_mentee; | |
| private $mentor_action; | |
| private $email_codes; | |
| private $notice_type; | |
| private $debug_email; |
source: http://www.dreamincode.net/forums/topic/78802-martyr2s-mega-project-ideas-list/ Re: Martyr2's Mega Project Ideas List! Post icon Posted 30 December 2008 - 04:23 PM
POPULAR Martyr2’s Mega Project List Created by Martyr2 (DIC Mentor)
Numbers
| <?php | |
| // if it's not a ISO8601 date string, skip it | |
| if(stripos($v , "T") === false) continue; | |
| $dateval = $v; | |
| // create ISO8601 dateTime | |
| $date = DateTime::createFromFormat(DateTime::ISO8601, $dateval); | |
| // set to user's timezone | |
| $date -> setTimeZone($dt_user_timezone); |
| <?php | |
| //returns a big old hunk of JSON from a non-private IG account page. | |
| function scrape_insta($username) { | |
| $insta_source = file_get_contents('http://instagram.com/'.$username); | |
| $shards = explode('window._sharedData = ', $insta_source); | |
| $insta_json = explode(';</script>', $shards[1]); | |
| $insta_array = json_decode($insta_json[0], TRUE); | |
| return $insta_array; | |
| } |
| <?php | |
| /* | |
| * title : simple instagram info fetcher | |
| * | |
| * author : shahril | |
| * receipant : afif zafri | |
| * date : 29-dis-2015 | |
| */ |
| -- ignore changes to local file, db, config etc. | |
| git update-index --assume-unchanged [<file>...] | |
| .git/info/exclude | |
| .gitignore |
| # Word not in string | |
| ^((?!cat).)*$ <-- Match sentence not containing 'cat' |
| # Learn Vim Fast | |
| https://robots.thoughtbot.com/the-vim-learning-curve-is-a-myth | |
| # VIM Tutorial | |
| http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html | |
| # Derek Wyatt's awesome vim series | |
| http://vimeo.com/user1690209/videos | |
| # Vimcasts |
Javascript
Learning Javascript Design Patterns, Addy Osmani http://addyosmani.com/resources/essentialjsdesignpatterns/book/
Pro JavaScript™ Design Patterns, Ross Harmes and Dustin Diaz http://www.vashstile1.ru/assets/files/price.pdf
| <?php | |
| // PRINT TAB ALIGNED COLUMNS | |
| // %- and % are left and right aligns | |
| $mask = "| %-30.30s | %10.10s | %10.10s |\n"; | |
| printf($mask, 'Host' , 'Results', 'Share'); | |
| printf($mask, $test_host, $total_results, $share_round); | |