This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
from Tkinter import Tk, Canvas, Frame, BOTH | |
import colorsys | |
def hex2rgb(hexColor): | |
r = (0x00ff0000 & hexColor) >> 16 | |
g = (0x0000ff00 & hexColor) >> 8 | |
b = (0x000000ff & hexColor) | |
return r,g,b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
from glob import glob | |
from PIL import Image | |
import sys | |
TRANSPARENT=(255,255,255,0) | |
BLACK=(0,0,0) | |
d=dict() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
from PIL import Image, ImageDraw | |
import math | |
import os | |
os.system("mkdir -p drawable-mdpi drawable-hdpi drawable-xhdpi drawable-xxhdpi drawable-xxxhdpi") | |
def gen(scale,filename): | |
size=int(16*scale) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remove Lock = Caps_Lock | |
keysym Caps_Lock = Control_L | |
add Control = Control_L | |
keycode 132 = backslash bar backslash bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Piyo | |
private | |
def piyo_inner | |
puts "piyo" | |
end | |
end | |
class Hoge | |
def hoge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var casper = require('casper').create(); | |
casper.start('http://yahoo.co.jp/'); | |
casper.then(function() { | |
var location = casper.evaluate(function(){ | |
return location.href; | |
}); | |
console.log("location=",location); | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
from PIL import Image | |
img = Image.open("/Users/yi01/Downloads/icon_終了.png") | |
img2 = Image.new("LA",img.size) | |
pix=img.load() | |
pix2=img2.load() | |
w,h=img.size |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Kotlin < Formula | |
desc "Statically typed programming language for the JVM" | |
homepage "https://kotlinlang.org/" | |
url "https://github.com/JetBrains/kotlin/releases/download/v1.1-M03/kotlin-compiler-1.1-M03.zip" | |
sha256 "55f630899df71894d01f1b25a048bbcc592e28e2545f955eb1034be0eb12c1a7" | |
bottle :unneeded | |
def install | |
libexec.install %w[bin lib] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import rx.Observable; | |
import rx.Single; | |
import rx.Subscription; | |
import java.util.concurrent.CountDownLatch; | |
import java.util.concurrent.TimeUnit; | |
public class Hoge { | |
public static void main(String[] args) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<manifest> | |
<remote name="github" fetch="https://github.com/" /> | |
<default revision="master" remote="github" /> | |
<project name="rails/rails.git" path="rails" /> | |
<project name="rspec/rspec-rails.git" path="rspec-rails" /> | |
<project name="rspec/rspec-core.git" path="rspec-core" /> | |
<project name="rspec/rspec-expectations.git" path="rspec-expectations" /> | |
<project name="rspec/rspec-support.git" path="rspec-support" /> |
OlderNewer