Skip to content

Instantly share code, notes, and snippets.

View jookyboi's full-sized avatar

Rui Jiang jookyboi

View GitHub Profile
[{
"id": 87,
"lastname": "BOUSSAUW",
"firstname": "ANNEMIE"
}, {
"id": 88,
"lastname": "VEREENOOGHE STEFAAN",
"firstname": "STEFAAN"
}, {
"id": 89,
:args `git grep -l .`
:argdo :%s/\s\+$//gc | w

Shared Clipboard: vim,tmux,macos

One clipboard to rule them all. Requires tmux >= 1.8. Thanks @thoughtbot

Tell vim to use the system clipboard:

" ~/.vimrc
set clipboard=unnamed " use the system clipboard

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
-new Date().getTimezoneOffset()/60;
@jookyboi
jookyboi / date.js
Created August 8, 2013 14:52
Date.js library for parsing JS dates. From https://code.google.com/p/datejs/
Date.today() // Returns today's date, with time set to 00:00 (start of day).
Date.today().next().friday() // Returns the date of the next Friday.
Date.today().last().monday() // Returns the date of the previous Monday.
new Date().next().march() // Returns the date of the next March.
new Date().last().week() // Returns the date one week ago.
Date.today().is().friday() // Returns true|false if the day-of-week matches.
Date.today().is().fri() // Abbreviated day names.
var Plugin = function($self, options) {
this.$self = $self;
this.options = $.extend({}, $.fn.plugin.defaults, options);
};
Plugin.prototype.display = function(){
console.debug("Plugin.display");
};
Plugin.prototype.update = function() {
var Plugin = function($self, options) {
this.$self = $self;
this.options = $.extend({}, $.fn.plugin.defaults, options);
};
Plugin.prototype.display = function(){
console.debug("Plugin.display");
};
Plugin.prototype.update = function() {
{
"name": "My extension",
...
"content_scripts": [
{
"matches": ["http://www.google.com/*"],
"css": ["mystyles.css"],
"js": ["jquery.js", "myscript.js"]
}
],
Tolstoy was born in Yasnaya Polyana, the family estate in the Tula region of Russia. The Tolstoys were a well-known family of old Russian nobility. He was the fourth of five children of Count Nikolai Ilyich Tolstoy, a veteran of the Patriotic War of 1812, and Countess Mariya Tolstaya (Volkonskaya). Tolstoy's parents died when he was young, so he and his siblings were brought up by relatives. In 1844, he began studying law and oriental languages at Kazan University. His teachers described him as "both unable and unwilling to learn."[3] Tolstoy left university in the middle of his studies, returned to Yasnaya Polyana and then spent much of his time in Moscow and Saint Petersburg. In 1851, after running up heavy gambling debts, he went with his older brother to the Caucasus and joined the army. It was about this time that he started writing.