Skip to content

Instantly share code, notes, and snippets.

View ryoppippi's full-sized avatar
🪀
yoyo

ryoppippi ryoppippi

🪀
yoyo
View GitHub Profile
@ryoppippi
ryoppippi / Lecture3-3.ipynb
Last active April 28, 2017 08:43
Lecture3-3.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ryoppippi
ryoppippi / nn.cpp
Last active May 18, 2017 06:59
授業で作ったNeural Networkでxの二乗を学習するやつ #cpp #NN
#include <bits/stdc++.h>
#define FOR(i,a,b) for (auto i=(a);i<(b);i++)
#define REP(i,n) for (auto i=0;i<(n);i++)
#define EPS 1e-15
#define I 1
#define H 4
#define O 1
#define N 500
#define alpha 0.35
@ryoppippi
ryoppippi / Lecture8-1.ipynb
Last active May 29, 2017 08:43
Lecture8-1.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ryoppippi
ryoppippi / callback.php
Created July 10, 2017 08:03
Line Bot 題名「そうなんですね!へ〜、そうなんだ〜!!」 #CodePiece #euler
<?php
$accessToken = '';
//ユーザーからのメッセージ取得
$json_string = file_get_contents('php://input');
$json_object = json_decode($json_string);
//取得データ
$replyToken = $json_object->{"events"}[0]->{"replyToken"}; //返信用トークン
@ryoppippi
ryoppippi / aria_test.ipynb
Created April 14, 2019 15:57
aria_test.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ryoppippi
ryoppippi / delete.py
Last active April 17, 2020 02:35
twitter deleter
import pyautogui as pgui
import subprocess
from time import sleep
if __name__ == "__main__":
subprocess.call(["say", "キャリブレーション"])
sleep(3)
select_p = pgui.position()
pgui.click(select_p)
#include QMK_KEYBOARD_H
#ifdef PROTOCOL_LUFA
#include "lufa.h"
#include "split_util.h"
#endif
#ifdef SSD1306OLED
#include "ssd1306.h"
#endif
@ryoppippi
ryoppippi / 3.bf
Last active August 2, 2022 15:02
>>>+++++++++[<++++++++++>-]<<<[-]>>[<<+>>>+<-]>[-]+<<[-]>>[<<+>+>-]<[-]<[>+>+<<-]>>[<<+>>-]<<<[>>>+>+<<<<-]>>>>[<<<<+>>>>-]<[-<[>>+>+<<<-]>>>[<<<+>>>-]+<[<<->>>-<[-]]>[<<[-]>>-]<<]+<[>-<[-]]>[<<[>+>>+<<<-]>>>[<<<+>>>-]+++<<[>>->+<[>>+>+<<<-]>>>[<<<+>>>-]+<[>-<[-]]>[<<[<+>-]>>-]<<<<<-]>>[-]>[<<<->>>-]+<<<[>>>-<<<[-]]<[>+>>+<<<-]>>>[<<<+>>>-]++++++++++<<[>>->>+<<[>>>+>+<<<<-]>>>>[<<<<+>>>>-]+<[>-<[-]]>[<<[<<+>>-]>>-]<<<<<<-]>>[-]<<+++>>>>[<<<<->>>>-]+<<<<[>>>>-<<<<[-]]>>>[<<<+>>>[-]]>[<<<<+>>>>[-]]<<<<[>>>>+<<<<[-]]+>>>>[>+++++++[<<<++++++++++++++>>>-]<<<.[-]>>>++++++++[<<<++++++++++++>>>-]<<<+.[-]>>>+++++++++[<<<++++++++++++>>>-]<<<-.[-]>>>++++++++[<<<++++++++++++>>>-]<<<+.[-]<<->>>>[-]]<<<<[<[>>>>>+<<+<<<-]>>>[<<<+>>>-]++++++++++>>[-<<->>>+<<<[>>>>+>+<<<<<-]>>>>>[<<<<<+>>>>>-]+<[>-<[-]]>[<<[<<<+>>>-]>>>+<-]<<<]>[>>>>>+<<<<<-]>>>[<<<<+>>>>-]<<<<<<[-]++++++++++>>[-<<->>>+<<<[>>>>+>+<<<<<-]>>>>>[<<<<<+>>>>>-]+<[>-<[-]]>[<<[<<<+>>>-]>>>+<-]<<<]>[>>>>+<<<<-]>>>[++++++++++++++++++++++++++++++++++++++++++++++++.<+>>
@ryoppippi
ryoppippi / copilot.fish
Created March 25, 2023 13:26
Copilot CLI for fish
function github-copilot_helper
set -l TMPFILE (mktemp)
trap 'rm -f $TMPFILE' EXIT
if github-copilot-cli $argv[1] "$argv[2..]" --shellout $TMPFILE
if [ -e "$TMPFILE" ]
set -l FIXED_CMD (cat $TMPFILE)
eval "$FIXED_CMD"
else
echo "Apologies! Extracting command failed"
end