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 time | |
import gevent | |
from locust import FastHttpUser, TaskSet, task, constant | |
import firebase_admin | |
from firebase_admin import credentials | |
from firebase_admin import firestore | |
cred = credentials.Certificate('credential.json') | |
firebase_admin.initialize_app(cred) |
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 | |
import matplotlib.pyplot as plt | |
from keras.datasets import imdb | |
from keras.preprocessing.text import Tokenizer | |
from keras import models | |
from keras import layers | |
from keras.callbacks import EarlyStopping | |
from sklearn.model_selection import train_test_split | |
from functools import partial |
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
extension UIView { | |
func findSubview(id: String, isRecursive: Bool = false) -> UIView? { | |
if !isRecursive { | |
return subviews.first(where: { $0.restorationIdentifier == id }) | |
} | |
// Breadth first search | |
for subview in subviews { | |
if subview.restorationIdentifier == id { | |
return subview |
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
#include <stdio.h> | |
#include <math.h> | |
int main() | |
{ | |
int i = 0; | |
double x[100], y[100]; | |
char filename[20]; | |
FILE* fp; |
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
#include <stdio.h> | |
#include <math.h> | |
main() | |
{ | |
int i = 0; | |
double x[100], y[100]; | |
char filename[20]; | |
FILE* fp; |
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
#include<stdio.h> | |
int main(void) { | |
int humanCount = 0; | |
int sum = 0; | |
int max=0; | |
int min=0; | |
int score[100]; |
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
// 軸のラベル(目盛)のフォント、テキストカラー | |
.labelFont = UIFont.systemFontOfSize(10.0) | |
.labelTextColor = UIColor.blackColor() | |
// 軸の色、太さ | |
axisLineColor = UIColor.grayColor() | |
axisLineWidth = CGFloat(0.5) | |
// グリッド線の色、太さ | |
.gridColor = UIColor.grayColor().colorWithAlphaComponent(0.9) |
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
// タップでデータを選択できるか | |
.highlightPerTapEnabled = true | |
// 指を離してもスクロールが続くか | |
.dragDecelerationEnabled = true | |
// 指を離してからの自動スクロールの減速度合い(0~1) | |
.dragDecelerationFrictionCoef = 0.9 | |
// description textのフォント、フォントカラー |
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
platform :ios, '9.0' | |
pod 'Charts' | |
use_frameworks! |
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
#include<stdio.h> | |
int main(void) { | |
return 0; | |
} |
NewerOlder