View tif2016.rb
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 'open-uri' | |
require 'json' | |
response = open('http://www.idolfes.com/2016/json/timetable/time.json') | |
data = response.read | |
json = JSON.parse(data) | |
artists = {} | |
json.keys.each{|day| | |
json[day].keys.each{|stage| |
View Utils.swift
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 Foundation | |
class Utils { | |
class func performAfterDelay(block: dispatch_block_t, delayTime: Double) { | |
let delay = delayTime * Double(NSEC_PER_SEC) | |
let time = dispatch_time(DISPATCH_TIME_NOW, Int64(delay)) | |
dispatch_after(time, dispatch_get_main_queue(), block) | |
} | |
} |
View gist:b37e4e5c9cc5b63d83e5
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
UINavigationBar.self.appearance().setBackgroundImage(UIImage(), forBarMetrics: UIBarMetrics.Default) | |
UINavigationBar.self.appearance().shadowImage = UIImage() |
View gist:5655d30b8ae893affc24
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
// ==UserScript== | |
// @name showroom star aggregator | |
// @namespace http://nipotan.com/ | |
// @version 0.8 | |
// @description 特定のルームには連射ボタン等があり、他は閉じるだけ | |
// @match https://www.showroom-live.com/* | |
// @grant none | |
// @copyright 2014 nipotan | |
// ==/UserScript== | |
$(document).ready(function(){ |
View MYViewController.h
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 <UIKit/UIKit.h> | |
#import <CoreMotion/CoreMotion.h> | |
@interface MYViewController : UIViewController | |
@property (nonatomic, strong) CMStepCounter *stepCounter; | |
@end |
View gist:5036922
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
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
UISlider *slider = [[UISlider alloc] init]; | |
slider.center = self.view.center; | |
slider.transform = CGAffineTransformMakeRotation(M_PI * -90.0 / 180.0); | |
[self.view addSubview:slider]; | |
[slider autorelease]; | |
} |