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
function kiri_test(from, to, interval) | |
cmd = "アニメ登録 anim1 2 " | |
for i=from, to, 1 | |
do | |
cmd = cmd..string.format("kiri\\kiri_%05d.png %d ", i, interval) | |
end | |
lvCmd(cmd) | |
end |
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 keras | |
import sklearn | |
import numpy as np | |
from sklearn import datasets | |
from sklearn.model_selection import train_test_split | |
from sklearn import preprocessing | |
from sklearn.metrics import f1_score | |
from keras.utils import to_categorical | |
from keras.layers import Dense, Activation | |
from keras.models import Sequential, Model |
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
package fav2slack; | |
import java.io.IOException; | |
import com.ullink.slack.simpleslackapi.SlackChannel; | |
import com.ullink.slack.simpleslackapi.SlackSession; | |
import com.ullink.slack.simpleslackapi.impl.SlackSessionFactory; | |
import twitter4j.Status; | |
import twitter4j.TwitterStream; |
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
xmin <- -2 | |
xmax <- 2 | |
ymin <- -2 | |
ymax <- 2 | |
size <- 1000 #点の数はsize*size | |
n <- 100 #発散判定の試行回数 | |
X <- matrix(rep(seq(xmin, xmax, length=size), times=size), nrow=size) | |
Y <- matrix(rep(seq(xmin, xmax, length=size), times=size), nrow=size, byrow=TRUE) | |
C <- X + 1i * Y | |
Z <- matrix(rep(numeric(size), times=size), nrow = size) |
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 numpy as np | |
import matplotlib.pyplot as plt | |
fig = plt.figure(figsize=(11, 5)) | |
ax1 = fig.add_subplot(1,2,1) | |
ax2 = fig.add_subplot(1,2,2) | |
#反転の円円対応 | |
theta = np.linspace(0, 2*np.pi, 100) | |
r = 10 |
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 java.util.List; | |
import java.util.ListIterator; | |
import java.util.ArrayList; | |
List<PVector> plist = new ArrayList<PVector>(); | |
void setup(){ | |
size(700, 700); | |
noFill(); | |
background(0); |
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
#define _CRT_SECURE_NO_WARNINGS | |
#include <stdio.h> | |
#include <stdlib.h> | |
int main(void) { | |
int a = 0; | |
char *s = (char *)malloc(sizeof(char) * 100); | |
printf("aのアドレス::%x\n", &a); | |
printf("sのアドレス::%x\n", s); |
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
#!/bin/zsh | |
for i in {1..10000}; | |
do | |
echo -n "やーい" | |
usleep 1000 | |
done | |
open -n -a /Applications/Utilities/Terminal.app --args "~/Desktop/aa.sh" |
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
void setup() | |
{ | |
size(700,700); | |
translate(width/2,height/2); | |
circlesR(0, 0, 350, 8); | |
} | |
void draw() | |
{ | |
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
void setup(){ | |
size(700,700); | |
background(255,255,255); | |
drawHenonMap(); | |
} | |
void draw(){ | |
} |