HEAD
はlocalのheadを、 head
はoriginのheadを指してそう
↑そうでもなさそう
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>AdjustWindowForFontSizeChange</key> | |
<true/> | |
<key>AllowClipboardAccess</key> | |
<false/> | |
<key>AnimateDimming</key> | |
<false/> |
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
func openAppStore() { | |
let itunesURL = "itms-apps://itunes.apple.com/app/id560447268" | |
let url = URL(string: itunesURL) | |
UIApplication.shared.openURL(url!) | |
} |
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
git stash | |
git checkout -b <branch_name> | |
git stash apply | |
git stash clear |
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 sys | |
sys.modules['module_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
# -*- coding: utf-8 -*- | |
import sys | |
import time | |
class ProgressBar: | |
MAX_LENGTH_OF_BAR = 30 | |
@classmethod | |
def single_generator(cls,iterable): |
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
library(igraph) | |
dg<-matrix(c( | |
0,0,0,0,0,0,0,0,0, | |
1,0,0,0,0,0,0,0,0, | |
1,0,0,0,0,0,0,0,0, | |
0,1,1,0,0,0,0,0,0, | |
1,0,0,0,0,0,0,0,0, | |
0,0,1,0,0,0,0,0,1, | |
0,0,0,0,0,1,0,0,0, | |
0,0,0,0,0,1,0,0,0, |
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 numpy as np | |
from sklearn.naive_bayes import MultinomialNB | |
from sklearn.datasets import fetch_mldata | |
import matplotlib.pyplot as plt | |
def draw_digit(data): | |
size = 28 | |
plt.figure(figsize=(3, 3)) | |
X, Y = np.meshgrid(range(size),range(size)) | |
Z = data.reshape(size,size) # convert from vector to 28x28 matrix |