Skip to content

Instantly share code, notes, and snippets.

View tdkn's full-sized avatar
😎
Power 💪

Shun Tedokon tdkn

😎
Power 💪
View GitHub Profile
@tdkn
tdkn / gist:5811757
Last active December 18, 2015 16:29
Ubuntu 12.04 LTS setting
# Home directory language setting : Japanese -> English
LANG=C; xdg-user-dirs-gtk-update
# useful app installation
sudo apt-get install aptitude
sudo aptitude install zsh vim-gnome ibus-mozc git
# git config
git config --global http.proxy proxy.addr.example:8080
@tdkn
tdkn / gist:4547473
Last active December 11, 2015 04:48
YouTube Daily Top Tracks Bookmarklet

YouTube Daily Top Tracks Bookmarklet

This bookmarklet is used to quick access to the "YouTube Daily Top Tracks" playlist.

How to use

  1. drag and drop
    [YouTube Daily Top Tracks](javascript:var date = new Date(); window.open('http://www.youtube.com/playlist?list=MCUS'+date.getFullYear(\)+('00'+ (date.getMonth()+1)).slice(-2)+('00' + date.getDate()).slice(-2));)
@tdkn
tdkn / gist:4547175
Created January 16, 2013 13:32
Get URL of YouTube Daily Top Tracks
$ YOUTUBE_RANKING="www.youtube.com/playlist?list=MCUS`date +%Y%m%d`"
$ chromium-browser $YOUTUBE_RANKING
@tdkn
tdkn / gist:4362839
Last active December 10, 2015 01:48
Installing and setup development environment on Ubuntu 12.10
$ LANG=C; xdg-user-dirs-gtk-update
$ sudo apt-get install git
$ git clone https://github.com/tdkn/dotfiles.git ~/dotfiles
$ git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
$ ln -s ~/dotfiles/.gitconfig ~/.gitconfig
$ ln -s ~/dotfiles/.gitignore_global ~/.gitignore_global
$ ln -s ~/dotfiles/.zshrc ~/.zshrc
@tdkn
tdkn / gist:4079338
Created November 15, 2012 15:53
CentOS6.3にscrotをインストール
# 作業ディレクトリへ
$ cd /tmp
# http://linuxbrit.co.uk/downloads/ から scrot の src.rpm をゲット。
# '*' はバージョン数
$ wget http://linuxbrit.co.uk/downloads/scrot*.src.rpm
# rpmbuild入って無かったので入れた
$ sudo yum install rpm-build
@tdkn
tdkn / .tmux.conf
Created September 2, 2012 15:20
tmux configuration file
## ----------------------------------------
## file: .tmux.conf
## author: tdkn
## create: 2012-08-30
## update: 2012-08-31
## ----------------------------------------
## ----------------------------------------
## key bind
## ----------------------------------------
@tdkn
tdkn / answer.txt
Created September 2, 2012 14:38
C++宿題 chapter11-12
■第11章 <錬成問題>
(01) メンバ
(02) Build
(03) コンストラクタ
(04) メンバ
(05) a) ある
(06) Build
(07) Build
(08) ・クラス宣言の書き方
@tdkn
tdkn / Age.cpp
Created September 2, 2012 14:36
C++の宿題 現在の年齢を返すメンバ関数Age
#include <iostream>
#include <iomanip>
#include <string.h>
#include <time.h>
using namespace std;
class Date {
private:
int year;
@tdkn
tdkn / date.cpp
Created September 1, 2012 18:28
C++の宿題 年月日を表示します
#include <iostream>
#include <iomanip>
#include <time.h>
using namespace std;
class Date {
private:
int year, month, day;
public:
@tdkn
tdkn / gist:3136502
Created July 18, 2012 14:27
Ruby de FizzBuzz
#!/usr/bin/env ruby
# coding: utf-8
# Fizz Buzz
1.upto(100) do |i|
if i % 15 == 0
print "FizzBuzz "
elsif i % 3 == 0
print "Fizz "