- 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
override func viewDidLayoutSubviews() { | |
super.viewDidLayoutSubviews() | |
let gradient = CAGradientLayer() | |
gradient.frame = tableView.superview?.bounds ?? .null | |
gradient.colors = [UIColor.clear.cgColor, UIColor.black.cgColor, UIColor.black.cgColor, UIColor.clear.cgColor] | |
gradient.locations = [0.0, 0.1, 0.9, 1.0] | |
tableView.superview?.layer.mask = gradient | |
} |
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
############################################################################### | |
# w32texによるLaTeXファイルのビルドルール | |
# 次のようなディレクトリ構成を仮定している | |
# root | |
# ├ OMakeroot | |
# ├ OMakefile このファイル | |
# ├ document.tex TeXファイル (文字コードはUTF-8) | |
# ├ refs.bib bibファイル (文字コードはUTF-8) | |
# ├ hogehoge/ サブディレクトリ (名前は任意) | |
# │ ├ sub1.tex サブディレクトリにあるTeXファイルもコンパイルされる |
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
# Description: | |
# DOCOMOの雑談APIを利用した雑談 | |
# | |
# Author: | |
# FromAtom | |
getTimeDiffAsMinutes = (old_msec) -> | |
now = new Date() | |
old = new Date(old_msec) | |
diff_msec = now.getTime() - old.getTime() |
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
require 'rubygems' | |
require 'uri' | |
require 'rss' | |
require 'redis' | |
require 'json' | |
require 'idobata' | |
class PukiWikiRssReader | |
def initialize (rss_url) | |
charset = nil |
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 -*- | |
require 'rubygems' | |
require 'google/api_client' | |
require 'yaml' | |
require 'time' | |
require 'date' | |
require 'idobata' | |
class GoogleCalendarManager |
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
def assignCar(members, first_car_capacity) | |
members.shuffle! | |
puts "---First car members---" | |
puts members.first(first_car_capacity) | |
puts "---Second car members---" | |
puts members.last(members.length-first_car_capacity) | |
end | |
# snorkel member's car assign | |
snorkel_buf = File.read("snorkel_members.txt", :encoding => Encoding::UTF_8) |
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
#!/usr/bin/env ruby | |
# -*- encoding: utf-8 -*- | |
require 'atomutil' | |
USERNAME = ARGV[0] | |
BLOG_DOMAIN = ARGV[1] | |
PASSWORD = ARGV[2] | |
POST_URI = "http://blog.hatena.ne.jp/#{USERNAME}/#{BLOG_DOMAIN}/atom/entry" |
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 image = "test.png"; | |
var costomPhotoAlbum = require('ti.customphotoalbum'); | |
costomPhotoAlbum.addCustomAlbumAndSaveImage(image, "ALBUM_NAME"); |
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
try { | |
throwURL(requestToken.getAuthorizationURL()); | |
} catch (URISyntaxException ex) { | |
ex.printStackTrace(); | |
} catch (IOException ex) { | |
ex.printStackTrace(); | |
} |