- Related Setup: https://gist.github.com/hofmannsven/6814278
- Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
- Interactive Beginners Tutorial: http://try.github.io/
- Git Cheatsheet by GitHub: https://services.github.com/on-demand/downloads/github-git-cheat-sheet/
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
// Material Palenight Color Scheme for Blink Shell | |
// by Greg Gamel (https://github.com/ggamel) (https://greg.is) | |
black = '#292d3e'; | |
red = '#f07178'; // red | |
green = '#c3e88d'; // green | |
yellow = '#ffcb6b'; // yellow | |
blue = '#82aaff'; // blue | |
magenta = '#c792ea'; // pink | |
cyan = '#89ddff'; // cyan |
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
extern "C" { | |
#include <sys/wait.h> | |
#include <unistd.h> | |
} | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
int main() { | |
int pipes[2][2]; |
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
Paste this fucking shit into userChrome.css | |
``` | |
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
.tabbrowser-tab[pinned] :-moz-any(.tab-icon-overlay[soundplaying]) { | |
display: none !important; | |
} | |
``` |
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 i in $(objdump -d shell.o -M intel |grep "^ " |cut -f2); do echo -n '\x'$i; done;echo |
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 python3 | |
# --*-- encoding: utf-8 --*-- | |
import sys | |
import random | |
# 常數 | |
empty = 0 | |
player = 1 | |
computer = 2 |
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 python3 | |
# -*- encoding: utf-8 -*- | |
def get_total(x, y, z): | |
return 25 * x + 30 * y + 20 * z | |
def get_leftover(money, x, y, z): | |
return money - get_total(x, y, z) | |
def maybe_show(money, x, y, z): |
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 bash | |
if [ $# -lt 1 ]; then | |
echo "usage: $0 <nr_test_files>" | |
exit 0 | |
fi | |
rm -rf testdir | |
mkdir -p testdir |
08/16/17 by Sergey Grebenshchikov
This is a quick tutorial on how to test code using the GoMock mocking library and the standard library testing package testing
.
GoMock is a mock framework for Go. It enjoys a somewhat official status as part of the github.com/golang organization, integrates well with the built-in testing
package, and provides a flexible expectation API.
OlderNewer