This file contains hidden or 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
// | |
// ViewController.swift | |
// Multipeer | |
// | |
// Created by Kashima Takumi on 2015/05/11. | |
// Copyright (c) 2015年 UNUUU FOUNDATION. All rights reserved. | |
// | |
import UIKit | |
import MultipeerConnectivity |
This file contains hidden or 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 xcrun swift | |
import Foundation | |
import Cocoa | |
public class SelfTimer: NSObject { | |
let TimerInterval: NSTimeInterval = 3600 | |
var timer: NSTimer? |
This file contains hidden or 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
#include "Square.h" | |
Square::Square() | |
: _linearType(LinearTypeTop) | |
, _lineLength(0) | |
, _alpha(0) | |
{ | |
} | |
Square::~Square() |
This file contains hidden or 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
<!doctype html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Threejs / Apple</title> | |
<style>body { background-color: black; margin: 0px; padding: 0px; } canvas { width: 100%; height: 100% }</style> | |
</head> | |
<body> | |
<script src="three.min.js"></script> | |
<script src="OrbitControls.js"></script> |
This file contains hidden or 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
#include "Circle.h" | |
Circle::Circle(float x, float y, float r) | |
{ | |
_x = x; | |
_y = y; | |
_r = r; | |
_color.r = ofRandom(255); | |
_color.g = ofRandom(255); |
This file contains hidden or 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
# -*- encoding: utf-8 -*- | |
require 'rqrcode' | |
require 'rqrcode_png' | |
require 'chunky_png' | |
qr = RQRCode::QRCode.new('Hello, world', :size => 3, :level => :h) | |
png = qr.to_img | |
png.resize(200, 200).save('qrcode.png') |
This file contains hidden or 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
<?php | |
/** | |
* WordpressのXMLから使われている画像をダウンロードする | |
* | |
* $argv[1] -> WordpressでエクスポートしたXML | |
* $argv[2] -> ダウンロードした画像の保存場所 | |
*/ | |
$xml_file_path = $argv[1]; | |
$image_dir_path = $argv[2]; |
This file contains hidden or 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
set-option default-shell /bin/zsh | |
set-option -g prefix C-t | |
unbind C-b | |
bind C-t send-prefix | |
# ウィンドウ・ペインの最初の番号を指定を1に。デフォルトだと0から | |
set -g base-index 1 | |
set -g pane-base-index 1set -g mouse-select-pane on |
This file contains hidden or 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
autoload -U compinit | |
compinit | |
zstyle ':completion:*:default' menu select=1 | |
# when tmux down | |
if [ "$TMUX" = "" ]; then | |
# tmux wake up!!! | |
tmux; | |
fi |