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
#!/bin/bash | |
function main () { | |
local original_hash=$(get_current_commit_hash) | |
go_to_project_root || exit 1 | |
create_new_branch || exit 1 | |
commit_with_copied_metadata ${original_hash} || exit 1 | |
for commit_hash in $(list_commit_hashes ${original_hash} | delete_last_line) |
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
javascript:void($('a[href][onmouseover][onmousedown]').each(function(){$(this).removeAttr('onmouseover').removeAttr('onmousedown');href=$(this).attr('href');$(this).attr('href',decodeURIComponent(href.replace('https://slack-redir.net/link?url=','')));})) |
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
The core idea of Vim is the very essence of the Unix Philosophy: | |
> Even though the UNIX system introduces a number of innovative programs and | |
> techniques, no single program or idea makes it work well. Instead, what makes | |
> it effective is the approach to programming, a philosophy of using the | |
> computer. Although that philosophy can't be written down in a single sentence, | |
> at its heart is the idea that the power of a system comes more from the | |
> relationships among programs than from the programs themselves. Many UNIX | |
> programs do quite trivial things in isolation, but, combined with other | |
> programs, become general and useful tools. |
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
#!/usr/bin/env python | |
# pylint: disable=C0111, R0903 | |
class Trie(object): | |
def __init__(self): | |
self.children = {} | |
def add_child(self, letter): | |
if letter in self.children: |
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
$('img').each(function (i, e) { $(e).attr("src", $(e).attr("data-src")); }); |