Skip to content

Instantly share code, notes, and snippets.

View sakakendo's full-sized avatar
🌴
On vacation

sakakendo

🌴
On vacation
View GitHub Profile
@sakakendo
sakakendo / promise.prototype.then.js
Created January 4, 2019 10:30
sample for promise.prototype.then
var promise1 = new Promise(function(resolve, reject) {
resolve('Success!');
});
promise1.then(function(value) {
console.log(value);
// expected output: "Success!"
});
// https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Promise/then
@sakakendo
sakakendo / quick_sort.c
Created December 10, 2018 06:15
quick sort with other array
#include <stdio.h>
void q_sort(int numbers[],int x[], int left, int right)
{
int pivot, l_hold, r_hold,tmp;
l_hold = left;
r_hold = right;
pivot = numbers[left];
tmp=x[left];
@sakakendo
sakakendo / colab_git.sh
Created December 4, 2018 03:43
git ssh authentication setu for google colab
# google colab github ssh authentication setup
# git config and get ssh-key
!export USER_NAME=""
!export EMAIL=""
!git config --global user.name "$USER_NAME"
!git config --global user.name "$EMAIL"
!echo "id_rsa"|ssh-keygen -t rsa -N ""
pip3 install myqr #install requirements package
git clone https://github.com/sylnsfar/qrcode #get source code
python3 qrcode/myqr.py --version  #check installation
python3 qrcode/myqr.py https://github.com/sakakendo0321/ #simple qrcode maker
python3 qrcode/myqr.py https://github.com/sakakendo0321/ -p sakakendo0.jpg -c #simple qrcode maker for any images with color
@sakakendo
sakakendo / lab.html
Created October 17, 2018 13:37
make lab table
<div id="lab"></div>
@sakakendo
sakakendo / index.pug
Created October 14, 2018 16:23
Responsive Image Gallery using Masonry
// images
- image1 = 'https://kunugida2018.tokyo-ct.ac.jp/data/c4J/0.png'
- image2 = 'https://placeimg.com/370/200/any'
- image3 = 'https://placeimg.com/150/100/any'
- image4 = 'https://placeimg.com/340/100/any'
- image5 = 'https://placeimg.com/210/200/any'
- image6 = 'https://placeimg.com/300/100/any'
- image7 = 'https://placeimg.com/225/100/any'
- image8 = 'https://placeimg.com/205/140/any'
- image9 = 'https://placeimg.com/300/175/any'
@sakakendo
sakakendo / README.md
Last active September 13, 2018 06:25
ngrok getting start

ssh to server

ssh user@host

run node server

npm install
node index.js &amp;
# mount google drive
# download and build darknet
cd drive/mesiter/darknet
wget https://github.com/sakakendo0321/darknet/archive/master.tar.gz
tar xvf meister.tar.gz
cd darknet-master
sed -i -e s/GPU=0/GPU=1/ Makefile
# test darknet
@sakakendo
sakakendo / LISENCE
Last active October 5, 2018 09:16
test darknetb
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, August 2018
Copyright (C) 2018 sakakendo <sakakendo0321@gmail.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.