Skip to content

Instantly share code, notes, and snippets.

@itiut
itiut / test_libjpeg_compress.c
Created June 30, 2012 18:01
libjpegを使ったjpegファイルの出力
#include <stdio.h>
#include <stdlib.h>
#include <jpeglib.h>
int main () {
/* JPEGオブジェクト, エラーハンドラの確保 */
struct jpeg_compress_struct cinfo;
struct jpeg_error_mgr jerr;
/* エラーハンドラにデフォルト値を設定 */
@itiut
itiut / .zshrc
Created June 30, 2012 21:19
.zshrc
# 文字コード
export LANG=ja_JP.UTF-8
# Pathの設定
export PATH=${PATH}:/opt/android-sdk-linux/tools
# 補完
autoload -U compinit; compinit
# Emacsキーバインド
@itiut
itiut / .vimrc
Created June 30, 2012 21:21
.vimrc
" バックアップを作らない
set nobackup
" スワップファイルを作らない
set noswapfile
" 行番号を表示する
set number
" ウィンドウタイトルに編集中のファイル名を表示する
@itiut
itiut / gist:5820445
Last active July 12, 2023 04:13
twitter bot作成のプロセス

twitter bot作成のプロセス

環境構築

rubyのインストール(ubuntu)

$ sudo apt-get install git build-essential libreadline-dev libssl-dev
$ git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
$ git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
@itiut
itiut / gist:5829171
Last active December 18, 2015 18:59
楽するためのシェル入門

GistDeckで見る

  1. https://gistdeck.herokuapp.com/ へ行く
  2. ブックマークレットを追加する
  3. このページに戻ってブックマークレットを実行する
  4. Escapeでやめる

Powered by GistDeck

@itiut
itiut / gist:5928857
Created July 4, 2013 16:11
ニコ動ランキングのページで、はてブのユーザー数が大きく表示されるのを直すcss
a.hBookmark-widget-counter img {
width: auto;
height: auto;
border: none;
}
@itiut
itiut / gist:5979102
Last active December 19, 2015 15:49
elispを一括してバイトコンパイルする
find . -name "*.el" | xargs emacs -batch -f batch-byte-compile
@itiut
itiut / gist:5980820
Last active December 19, 2015 15:59
研究室のデスクトップWindowsにインストールしたソフト
  • マザーボード ドライバ
  • Logicool ドライバ
  • ウイルスバスター クラウド
  • Google Chrome
  • Google IME
  • Thunderbird
  • Mendeley
  • Dropbox
  • ZiiLauncher
  • Ctrl2cap
@itiut
itiut / gist:6575631
Last active December 23, 2015 03:49
Ubuntu13.10でのTex環境
  • インストール

    $ sudo apt-get install texmaker --no-install-recommends
    
  • 設定

    • Commands
      • LaTeX: platex -synctex=1 -interaction=nonstopmode %.tex
      • Bib(la)tex: pbibtex %.aux
  • Dvipdfm: dvipdfmx -f otf-ipaex.map %.dvi

@itiut
itiut / gist:8752053
Created February 1, 2014 12:58
Ubuntuでどのデスクトップセッションを使っているか確認する

Ubuntu13.10(Unity)の場合

$ echo $DESKTOP_SESSION
ubuntu

Xubuntu13.10の場合

$ echo $DESKTOP_SESSION
xubuntu