git remote add upstream /url/to/original/repo
git fetch upstream
git checkout master
git reset --hard upstream/master
git push origin master --force
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
<div id="taskapp" v-repeat="task :tasks"> | |
{{task.title}} |
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
Private Sub CommandButton1_Click() | |
Dim i As Long | |
Dim outFile As String | |
Dim hashSheet As Worksheet | |
hashSheet = ActiveSheet | |
Workbooks.Open Filename:=ThisWorkbook.Path & "\template.xls" | |
For i = 1 To ActiveSheet.UsedRange.Rows.Count | |
Dim key As String | |
Dim val As String | |
key = Cells(1, i).Value |
- http://extrea.hatenablog.com/entry/2012/07/31/104749
- https://wiki.archlinux.org/index.php/Official_Arch_Linux_Install_Guide
VirtualBox+NATの場合、eth0が無くてenp0s3となってしまうようだ。
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 'webrick' | |
server = WEBrick::HTTPServer.new(:DocumentRoot => Dir.pwd, :Port => 3000) | |
['INT', 'TERM'].each do |signal| | |
trap(signal){ server.shutdown } | |
end | |
server.start |
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
fs = new ActiveXObject("Scripting.FileSystemObject"); | |
base = fs.BuildPath(String(WScript.ScriptFullName).replace(WScript.ScriptName,""), "."); | |
objFile = fs.GetFolder(base); | |
a = new Date(objFile.DateLastModified).getTime(); | |
while(true){ | |
WScript.sleep(1000); | |
b = new Date(objFile.DateLastModified).getTime(); | |
if(a != b){ | |
//WScript.echo("ファイルが更新されました" + a +"vs" + b); | |
var sh = new ActiveXObject( "WScript.Shell" ); |
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 sh = new ActiveXObject( "WScript.Shell" ); | |
sh.Run( "C:/WINDOWS/system32/notepad.exe",1,true ); | |
WScript.Echo("hmm"); |
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
set nocompatible | |
filetype off | |
if has('vim_starting') | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
call neobundle#rc(expand('~/.vim/bundle/')) | |
endif | |
NeoBundleFetch 'Shougo/neobundle.vim' | |
NeoBundle 'Shougo/vimproc' |
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
<!doctype html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<!-- for Mobile view --> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | |
<!-- iOS Application Setting --> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> |
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
(function(){ | |
var s = document.createElement('link'); | |
s.setAttribute('href','http://perchouli.github.com/ixedit/stylesheets/ixedit.css'); | |
s.setAttribute('rel','stylesheet'); | |
s.setAttribute('type','text/css');document.getElementsByTagName('head')[0].appendChild(s); | |
s = document.createElement("script"); | |
s.type = "text/javascript"; | |
s.src = "http://code.jquery.com/jquery.min.js"; |