- Scott Chacon on the Interwebs(リンク切れ)
- Scott Chacon on the Interwebs
- GitHub Flow - The best way to use Git and GitHub
31 Aug 2011
#!/bin/bash | |
RETVAL=0 | |
while read HASH_OLD HASH_NEW REFNAME; do | |
( | |
git log --format=format:"%H%x09%an%x09%ae" ${HASH_OLD}..${HASH_NEW} | |
echo | |
) | |
#!perl | |
use 5.14.2; | |
use WWW::Mechanize; | |
use Getopt::Long; | |
use Term::Prompt; | |
use URI; | |
my $username; | |
my $baseurl; |
// ==UserScript== | |
// @name follow organization | |
// @description Show follow button on github organization page | |
// @namespace http://www.technolize.net/ | |
// @include https://github.com/* | |
// @version 0.1 | |
// @license MIT License | |
// @work Google Chrome | |
// ==/UserScript== |
#!/usr/bin/python | |
# A simple example of a threaded TCP server in Python. | |
# | |
# Copyright (c) 2012 Benoit Sigoure All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# - Redistributions of source code must retain the above copyright notice, | |
# this list of conditions and the following disclaimer. | |
# - Redistributions in binary form must reproduce the above copyright notice, |
std::string get_exe_fullpath() | |
{ | |
char path[MAX_PATH]; | |
::GetModuleFileName(NULL, path, MAX_PATH); | |
return std::string(path); | |
} | |
std::string get_exe_filename() | |
{ | |
boost::filesystem::path path(get_exe_fullpath()); |
// Fixed example from: http://thisthread.blogspot.com/2011/04/multithreading-with-asio.html | |
void run (int tNumber) // 1. | |
{ | |
boost::asio::io_service svc; // 2. | |
boost::thread_group threads; | |
{ | |
std::auto_ptr<boost::asio::io_service::work> work(new boost::asio::io_service::work(svc)); //3. | |
for (int i = 0; i < tNumber; ++i) // 4. |
<!-- Just replace **USERNAME** by your github username :-) --> | |
<style> | |
#followGithub { | |
color: #121516; | |
text-shadow: 0 1px 1px #ccc; | |
padding: 0.2em 0.4em; | |
-moz-border-radius: 5px; | |
-webkit-border-radius: 5px; | |
border-radius: 5px; |