Skip to content

Instantly share code, notes, and snippets.

@wakita
wakita / cmake-root
Last active February 6, 2016 14:32
WindowsでMinGW64 + MSYS環境で開発をするための設定.$DROPBOX/win/bin に保存し,$DROPBOX/win/bin を PATH に追加して利用できます.
#!/bin/sh
if [ "$_system_type" = Darwin ]; then
export OSTYPE=Darwin
export C_INCLUDE_PATH=/opt/brew/include
export CPLUS_INCLUDE_PATH=/opt/brew/include
export CMAKE=/opt/brew/bin/cmake
export MAKE=/usr/bin/make
fi
@ytera
ytera / readernum.rb
Last active September 15, 2015 02:22
読書メーターに登録されている本の読者数を取得するスクリプト
# -*- encoding: utf-8 -*-
require 'mechanize'
require 'nokogiri'
require 'kconv'
require 'fileutils'
# ハッシュ
module HashInitializable
def initialize(attributes={})
attributes.each do |name,value|
@hyuki0000
hyuki0000 / face.rb
Last active October 17, 2016 22:34
EYE = %w( შ ๑ ะ ๏ ཅ ⌑ ◌ მ פ இ ௫ ° •)
MOUTH = %w( _ ⌓ ﹏ ⌄)
EYE.each do |e|
MOUTH.each do |m|
print "(#{e}#{m}#{e}) "
end
puts
end
@zakizaki-ri9
zakizaki-ri9 / techplay.go
Created December 17, 2018 01:30
techplayのイベントページからスクレイピング&抜粋した情報を返却するgo lambda
package main
import (
"encoding/json"
"fmt"
"log"
"regexp"
"strconv"
"strings"