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
| # Create a directory where to move your renamed photos | |
| mkdir img | |
| # Rename your first G0....JPG photos in img/img000001.JPG and so on | |
| x=1;for i in G0*JPG; do counter=$(printf %06d $x); ln "$i" img/img"$counter".jpg; x=$(($x+1)); done | |
| # Rotate photos if needed | |
| cd img | |
| for file in *.jpg; do convert $file -rotate 180 rotated-$file; done |
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 line will copy the result in your clipboard | |
| //copy($.makeArray($(".content").find('.time').find('a').map(function() {return $(this).attr("href");})).map(function(el) {return el.split("/")[3];}).join("\n")) | |
| $.makeArray( | |
| $(".content").find('.time').find('a').map( | |
| function() { return $(this).attr("href"); } | |
| ) | |
| ).map( | |
| function(el) { return el.split("/")[3]; } | |
| ).join("\n"); |
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
| <html> | |
| <head> | |
| <!-- For the main favicon itself, it's best for cross-browser compatibility not to use any HTML. | |
| Just name the file favicon.ico and place it in the root of your domain. --> | |
| <!-- Touch icon for iOS 2.0+ and Android 2.1+ --> | |
| <link rel="apple-touch-icon-precomposed" href="path/to/favicon-152.png"> | |
| <!-- IE 10 Metro tile icon --> | |
| <meta name="msapplication-TileColor" content="#FFFFFF"> <!-- replace #FFF --> | |
| <meta name="msapplication-TileImage" content="/path/to/favicon-144.png"> |
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
| <html> | |
| <!-- From http://ionicons.com/ --> | |
| <head> | |
| <style> | |
| body { | |
| box-sizing: border-box; | |
| padding-top: 136px; | |
| border-top: 1px solid #4F8EF7; | |
| color:#373737; | |
| text-align: center; |
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
| import re | |
| import operator | |
| ALPHA = 'abcdefghijklmnopqrstuvwxyz' | |
| d = {} | |
| pound = 1 | |
| score = 0 | |
| str = 'Good luck in the Facebook Hacker Cup this year!' | |
| str = str.lower() |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta name="description" content="Company Homepage"> | |
| <meta name="author" content="Victor Jolissaint"> | |
| <title>Page title</title> | |
| <link rel="author" href="humans.txt"> |
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
| $("#rsvp-list-waitlist h5") | |
| .map(function(i, el) {return {"pos": i, "name": $(el).text()}}) | |
| .filter(function(i, el) {return el["name"].indexOf("Your name") >= 0;}); |
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
| f=$(curl -Ls twitter.com/y3ty | grep -Po '(?<=followers_count":)[0-9]+'); echo $f |
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
| While developing website / webapp it's great to force your browser to reload when modifiying code. | |
| You have plenty of solutions like LiveReload. | |
| I wanted to be able to reload Firefox from vim and this is a simple way to achieve that: | |
| * Install MozRepl (https://github.com/bard/mozrepl/wiki) | |
| * Firefox > Tools > MozRepl > Start | |
| * Be sure you have netcat 'nc' installed | |
| * Add these line in your .vimrc: |