-
お名前
- ケント
-
ご職業
-
システム開発会社 開発 Javaばっかりで、最近は開発から遠ざかり気味
-
Rails 4 と Github に関するあなたのステータス
-
Rails : ステータス3
-
Git/Github : ステータス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
git clone https://github.com/plusjade/jekyll-bootstrap.git USERNAME.github.io | |
cd USERNAME.github.io/ | |
git remote set-url origin [email protected]:USERNAME/USERNAME.github.io.git | |
git push origin master |
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
var str = "https://www.youtube.com/watch?v=cvj3-MZO9Tw&list=dddd"; | |
document.getElementById('helloWorld').innerHTML = str.replace(/.*v=([\d\w\-]+).*/,"$1"); | |
var str2 = "//www.youtube.com/embed/cvj3-MZO9Tw&list=dddd"; | |
document.getElementById('helloWorld2').innerHTML = str2.replace(/.*embed\/([\d\w\-]+).*/,"$1"); |
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
[root]# useradd hagehage //hagehageという名前でユーザを作成 | |
[root]# passwd hagehage //hagehageさんにパスワード設定します宣言 | |
:パスワード入力 //hagehageさんの新しいパスワードを2度入力 | |
:パスワード再入力 | |
[root]# usermod -G wheel hagehage //hagehageさんをwheelっていうユーザグループに所属させるらしい。suでrootとして操作出来るようにってことらしい。 | |
[root]# su - hagehage //ユーザを変更しておく | |
[hagehage]$ mkdir .ssh //不要かもしれないけど.sshディレクトリを作成しておいた |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
//OutputCal | |
var outCalId = CAL_ID0; | |
//InputCal | |
var inCalIds = [ | |
CAL_ID1, | |
CAL_ID2 | |
]; | |
function main(){ |
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
require 'fileutils' | |
require 'rubygems' | |
require 'find' | |
inDir = "C:/Users/KENT/Pictures/old/" | |
outDir = "C:/Users/KENT/Pictures/new/" | |
list = [] | |
Find.find(File.expand_path(inDir)){ |path| | |
if /.*(jpg|JPG|jpeg|JPEG|mp4|MP4|png|PNG|wmv|mov|MOV|DNG|AVI|gif|GIF|avi|ASF)\z/ =~ path |
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
import flash.external.ExternalInterface; | |
function log(...args:*):void | |
{ | |
ExternalInterface.call("function(str){ if (typeof window.console == 'object'){ console.log(str) } }", args); | |
} |
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
//まとめた後のカレンダー | |
var outCalId = CAL_ID0; | |
//まとめる前のカレンダー | |
var inCalIds = [ | |
CAL_ID1, | |
CAL_ID2 | |
]; | |
//メイン関数 | |
//出力先カレンダーの未来5ヶ月を削除 |