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 | |
| //reverse string algorithm | |
| function reverse($string) { | |
| $len = strlen($string); | |
| $i = 0; | |
| while($i <= $len) { |
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 | |
| //reverse string algorithm | |
| echo strrev("mathematics"); | |
| ?> |
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
| <!-- just the html structure --> | |
| <div class="date"> | |
| <span class="mon">FEB</span> | |
| <span class="day">12</span> | |
| <span class="yr">10</span> | |
| </div> |
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
| <style type="text/css"> | |
| .date { | |
| width: 100px; | |
| margin: 0; | |
| padding: 0; | |
| background: #750e00; | |
| } | |
| .shadow { |
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
| <?php | |
| //grab an array from input file | |
| $handle = fopen("input.txt", "r"); | |
| $i = 0; | |
| while (!feof($handle) ) { | |
| $lines[$i] = trim(fgets($handle)); | |
| $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
| sudo apt-get install dkms | |
| sudo dkms ldtarball psmouse-elantech-x551c.tar.gz | |
| sudo dkms install -m psmouse -v elantech-x551c | |
| sudo rmmod psmouse | |
| sudo modprobe psmouse |
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
| mkdir img && cd img && wget -O 1.jpg http://lorempixel.com/200/200/ && wget -O 2.jpg http://lorempixel.com/200/200/ && wget -O 3.jpg http://lorempixel.com/200/200/ && wget -O 4.jpg http://lorempixel.com/200/200/ && wget -O 5.jpg http://lorempixel.com/200/200/ && wget -O 6.jpg http://lorempixel.com/200/200/ && wget -O 7.jpg http://lorempixel.com/200/200/ && wget -O 8.jpg http://lorempixel.com/200/200/ && wget -O 9.jpg http://lorempixel.com/200/200/ && wget -O 10.jpg http://lorempixel.com/200/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
| /* | |
| * object.watch polyfill | |
| * | |
| * 2012-04-03 | |
| * | |
| * By Eli Grey, http://eligrey.com | |
| * Public Domain. | |
| * NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
| */ |
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 shotId = $('.the-shot').data('screenshot_id'); | |
| $('.meta-colors').click(function(ev) { | |
| ev.preventDefault(); | |
| if($(ev.target).is('img')) { | |
| var colors = ''; |
OlderNewer