Skip to content

Instantly share code, notes, and snippets.

View YuukiToriyama's full-sized avatar
🚲
On Cycling

ToriChan YuukiToriyama

🚲
On Cycling
  • Kyoto, Japan
  • 09:34 (UTC +09:00)
View GitHub Profile
@0rbianta
0rbianta / jobject_examples.h
Last active December 2, 2023 16:33
JNI Jobject examples
using namespace std;
//----------------------Convert a Java data------------------------\\
jstring create_jstring(JNIEnv *env, const char *data) {
return env->NewStringUTF(data);
}
jint create_jint(JNIEnv *env, int data){
ply
format ascii 1.0
comment Created by Blender 2.79 (sub 0) - www.blender.org, source file: ''
comment # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
comment #
comment # Licensed under the Apache License, Version 2.0 (the "License");
comment # you may not use this file except in compliance with the License.
comment # You may obtain a copy of the License at
comment #
comment # http://www.apache.org/licenses/LICENSE-2.0
@mak00s
mak00s / process-large-csv-with-dask.py
Last active January 15, 2024 07:13
PythonのDASKを使ってpandasでは処理できない巨大CSVを前処理する方法
import dask.dataframe as dd
# 分割されたCSVでも一つの巨大CSVでも同じように読み込める
file1 = 'DW-exported-*.csv'
df = dd.read_csv(file1, header=0, names=('Pages','VisitNum','HitDepth','Date','CV','Customer ID','Referrer','PV'), dtype={'Pages':'object','VisitNum':'int16','HitDepth':'int16','Date':'object','CV':'object','eVar13':'object','Referrer':'object','PV':'int16'})
# カラム名や型を指定しない場合
#df = dd.read_csv(file1, header=0)
# この結果、複数のパーティションに分割されたpandas dataframeが生成される
@obelisk68
obelisk68 / turtle_knuth_curve.rb
Created February 6, 2018 03:32
クヌース曲線
require 'oekaki'
require_relative 'turtle'
Width, Height = 600, 350
Oekaki.app width: Width, height: Height, title: "Knuth curve" do
draw do
clear
t = Turtle.new(Width, Height, self)
@mrquincle
mrquincle / greek.md
Last active April 8, 2024 13:27
Symbols

Capital letters:

Code Name Code Description Symbol / Character
Α Α Greek capital letter alpha Α
Β Β Greek capital letter beta Β
Γ Γ Greek capital letter gamma Γ
Δ Δ Greek capital letter delta Δ
Ε Ε Greek capital letter epsilon Ε
Ζ Ζ Greek capital letter zeta Ζ
{"110000": "w", "110001": "x", "110101": "1", "110100": "0", "010100": "U", "010101": "V", "001100": "M", "001101": "N", "011110": "e", "011111": "f", "001001": "J", "001000": "I", "011011": "b", "011010": "a", "000110": "G", "000111": "H", "000011": "D", "000010": "C", "100100": "k", "100101": "l", "111100": "8", "111101": "9", "100010": "i", "100011": "j", "101110": "u", "101111": "v", "111001": "5", "111000": "4", "101011": "r", "101010": "q", "110011": "z", "110010": "y", "010010": "S", "010011": "T", "010111": "X", "010110": "W", "110110": "2", "110111": "3", "011000": "Y", "011001": "Z", "001111": "P", "001110": "O", "011101": "d", "011100": "c", "001010": "K", "001011": "L", "101101": "t", "000000": "A", "000001": "B", "100111": "n", "100110": "m", "000101": "F", "000100": "E", "111111": "/", "111110": "+", "100001": "h", "100000": "g", "010001": "R", "010000": "Q", "101100": "s", "111010": "6", "111011": "7", "101000": "o", "101001": "p"}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@risgk
risgk / ruby-arduino-synth.md
Last active May 30, 2019 16:34
Ruby x Arduinoでシンセサイザーを作ってみた #hmrk01

Ruby x Arduinoでシンセサイザーを作ってみた

  • 2015/03/28 浜松Ruby会議01

  • Hamamatsu.rb 石垣 良

@Eternal-tears
Eternal-tears / flickrphotoset-api.js
Last active December 30, 2019 11:28
Flickr APIの自分のアカウントのsetidを使った写真を表示する方法
$(function(){
$.ajax({
type : 'GET',
url : 'https://api.flickr.com/services/rest/',
data : {
method : 'flickr.photosets.getPhotos', // (Required)This method does not require authentication.
api_key : 'xxxxxxxxxxxxxxxxxxxxxxx', // (Required)Your API application key. See here for more details.
photoset_id : 'xxxxxxxxxxxxxxxxxxxxxxx', // (Required)The id of the photoset to return the photos for.
extras : 'url_sq', // A comma-delimited list of extra information to fetch for each returned record. Currently supported fields are: license, date_upload, date_taken, owner_name, icon_server, original_format, last_update, geo, tags, machine_tags, o_dims, views, media, path_alias, url_sq, url_t, url_s, url_m, url_o
@Lokno
Lokno / colorMatrices.js
Last active July 30, 2023 01:02
Color Blindness Matrices
// JSON of 3x3 matrices which transform RGB colors into colorspace which
// simulate the imparement of various color blindness deficiency.
//
// Used by Coblis: http://www.color-blindness.com/Coblis-color-blindness-simulator/
//
// The original website posting the matrices has been taken down:
// http://www.colorjack.com/labs/colormatrix/
//
// RGB transform matrices generated by Michael of www.colorjack.com
// Which were created using code by Matthew Wickline and the