Skip to content

Instantly share code, notes, and snippets.

@yasuharu519
yasuharu519 / multi_thread_worker.cpp
Created January 6, 2015 16:34
マルチスレッドの使用例
#include <iostream>
#include <memory>
#include <mutex>
#include <random>
#include <thread>
#include <vector>
static std::mutex mux;
std::random_device seed_gen;
std::default_random_engine engine(seed_gen());
@yasuharu519
yasuharu519 / future_promise.cpp
Created January 6, 2015 16:32
future/promise の使用例
#include <future>
#include <iostream>
#include <memory>
#include <mutex>
#include <random>
#include <thread>
#include <vector>
static std::mutex mux;
std::random_device seed_gen;
@yasuharu519
yasuharu519 / git-today
Last active January 28, 2017 11:20
git-today script
#!/bin/sh
LAST_BEFORE_TODAY=$(git log --oneline --until='yesterday 23:59:59' | head -1 | cut -d' ' -f 1)
AUTHOR="sawada_yasuharu"
echo "---------- git commit num today ---------"
git rev-list ${LAST_BEFORE_TODAY}..HEAD --count --author=${AUTHOR}
echo "---------- git commit summary today ---------"
git log ${LAST_BEFORE_TODAY}..HEAD --oneline --author=${AUTHOR}
set runtimepath+=$HOME/dotfiles/vim/
runtime! conf.d/common/*.vim
runtime! conf.d/filetypes/*.vim
runtime! conf.d/plugins/*.vim
@yasuharu519
yasuharu519 / HelloWorld.cpp
Created November 3, 2014 15:29
CSB Load sample for cocos2d-x 3.3rc0
#include "HelloWorldScene.h"
#include "editor-support/cocostudio/CocoStudio.h"
USING_NS_CC;
Scene* HelloWorld::createScene()
{
auto scene = Scene::create();
auto layer = HelloWorld::create();
scene->addChild(layer);
@yasuharu519
yasuharu519 / .vimrc
Last active August 29, 2015 14:01
.vimrc
"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
" _ "
" _ __(_)___ ___ __________ "
" | | / / / __ `__ \/ ___/ ___/ "
" | |/ / / / / / / / / / /__ "
" |___/_/_/ /_/ /_/_/ \___/ "
" "
"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
"==============================================================================
/* コメント部分CSS */
.entry-comment{
border-left: 1px solid #ccc;
padding-left: 2em;
}
.entry-comment p{
margin: 0;
}

GitHub トレーニングチームから学ぶ Git の内部構造

Graphs, Hashes, and Compression, Oh My!

Hash について

従来の CVCS (集中バージョン管理システム)のリビジョン番号は連番。 SVN はサーバーにデプロイした時点でリビジョン番号1と設定される。

@yasuharu519
yasuharu519 / shuzo
Created October 3, 2013 11:31
いつでも励ましてくれるマン
This file has been truncated, but you can view the full file.
#!/bin/zsh
TMP=`mktemp -t ganbare.XXXXXX`
g1='SUQzBAAAAAAAGVRTU0UAAAAPAAADTGF2ZjU0LjYzLjEwNAD/+5QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABJbmZvAAAABwAAAGsAAKIAAAcJCw4QEhUXGhweISMlKi0vMTQ2ODs9QEJER0lOUFJVV1pcXmFjZWhqbXF0dnh7fYCChIeJi46QkpeanJ6ho6Woqq2vsbS2u73AwsTHycvO0NLV19re4ePl6Ort7/H09vj7/UxhdmY1NC42My4xMDQAAAAAAAAAACQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/+5RkAAAC7ypS1QxgAjDgF+CgAAARYOlbOPYAAKkAZPcAIAAAASAAAClH0CAAAiI7u7/o7u/p7u7u5+7uBgYGBgYGAAAAhfx3fiIiP///u7u7uAAAgAAAAPH5h4YAAAAAB4eHh4YAAAAID3///wAd/9DwwAAHYB4eHn////9Dw9aB4Pv/QD5/AYPn85/wfB94jB9+D4Pg+D4OO/UCYP/wTB8HwfB8EP8H+CYf/9YPggCAYoG+nu5la+///DQLcJw4C3q0OhTF1MUTBFl8UwaZcoxbTgmNB4IQQktYblkEAblAnkYOgdAwIJJCcuGBIhcFqpGXG0E5xfMbBsuhXWYMZJ47Gr0IwWr7YwvMdyJCucMLYVcWrDl5xvYVnZ32c6XIclxrsUayHQeGhlghvMsDypdsRoOh0K8htb

ページ1

ページ2

ぺ〜じ3

Welcome to Glide.

Glide is the easiest way to create useful slide for all of your Gists.