Ctrl+KB | toggle side bar |
Ctrl+Shift+P | command prompt |
Ctrl+` | python console |
Ctrl+N | new file |
This file contains 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
Storage.prototype.setObj = function(key, obj) { | |
return this.setItem(key, JSON.stringify(obj)); | |
} | |
Storage.prototype.getObj = function(key) { | |
var value = this.getItem(key); | |
return value && JSON.parse(value); | |
} |
These simple CSS blocks are alive. Each block reacts to its neighbors by transforming border-radius and color. Endless block formations, endless reactions between them.
A Pen by Yogev Ahuvia on CodePen.
This file contains 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 tmpl(template, data) { | |
return template.text().replace(/\{([\w\.]*)\}/g, function(str, key) { | |
var v = data[key]; | |
return (typeof v !== "undefined" && v !== null) ? v : ""; | |
}) | |
} | |
/* | |
Usage: |
This file contains 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
crack Sublime Text (2 and 3) | |
1. Open Sublime in a HEX editor (the executable file) | |
2. Find 43 33 33 42 30 32 | |
3. Replace in the string 33 42 with 32 42 | |
4. Save | |
5. Enter the license below: | |
—–BEGIN LICENSE—– | |
Patrick Carey |
This file contains 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 | |
REPLY_SPLITTER_REG = re.compile(r"^From:\s*[a-zA-Z0-9.\+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}|^From:\s.*\[mailto:[a-zA-Z0-9.\+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}\]|^On\s.*\s<[\s|][a-zA-Z0-9.\+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}>[\s|]wrote:$|^On\s.+?wrote:$|^Le\s.*\s<[\s|][a-zA-Z0-9.\+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}>[\s|]a\sécrit\s:$|^Le\s.+?a\sécrit\s:$|^.*<[a-zA-Z0-9.\+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}>.*$|^-+[\s|]Message\stransféré[\s|]-+$|^-+[\s|]Original\s+Message[\s|]-+$|^-+[\s|]Reply Message[\s|]-+$|^Sent.*from.*my.*|^envoyé\s+depuis\s+mon.*| ^envoyé\s+de\s+mon.*|^" + 'reply above this line' + "|^↑ Merci de répondre par dessus cette ligne ↑$|^-- $|^>\s|^[-|_]{3,}$|^\*{5,}DISCLAIMER\*{5,}$|^—$", re.I | re.M) | |
#try it here : http://regex101.com/r/oE7sC7/3 |
This file contains 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
/* | |
* for more info see : https://github.com/dciccale/ki.js/blob/master/ki.js | |
* ie8 compatible !! | |
* included functions : $.create, $.each $.isFunction, on, off, hasCLass, addClass, removeClass, each show, append, hide, hmtl, attr, removeAttr, css, remove, ... | |
* usefull for developing third-party jsavascript widgets | |
*/ | |
!function (window, document, array, prototype, event_listener) { | |
f = document['add' + event_listener] | |
function init(selector, d, i) { |
This file contains 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
cd ~ | |
##If you want to install OpenJDK | |
#sudo apt-get update | |
#sudo apt-get install openjdk-8-jre-headless -y | |
###Or if you want to install Oracle JDK, which seems to have slightly better performance | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java8-installer |
I hereby claim:
- I am abriemme on github.
- I am abrymaxime (https://keybase.io/abrymaxime) on keybase.
- I have a public key whose fingerprint is 2288 7E3B 5245 E3C4 A4AB 3D42 5FC4 9A22 9A32 9ECC
To claim this, I am signing this object:
I hereby claim:
- I am abriemme on github.
- I am abriemme (https://keybase.io/abriemme) on keybase.
- I have a public key ASAYmeTvrGnDpSsSdSSBvDCxWajaVFtDLpJ2dUy_h3mbxgo
To claim this, I am signing this object: