View gss_cartesian_coords.csv
1.22464679915e-16 0.0 -1.0
-0.0185511469485 0.0795141687573 -0.996661101836
-0.11510877307 0.00780833227827 -0.993322203673
-0.0794333510688 -0.11671931096 -0.989983305509
0.0488700851286 -0.155385096561 -0.986644407346
0.163177583038 -0.0805192648137 -0.983305509182
0.191430375208 0.0549531867769 -0.979966611018
0.12268505648 0.176484241225 -0.976627712855
-0.00750226789622 0.229461541818 -0.973288814691
-0.144663150994 0.195626511937 -0.969949916528
View gss_generator.py
#!/usr/bin/env python
# coding: utf-8
'''参考文献に記載されているDelphiのコードの移植版
Notes
-----
参考文献: 多数の点を球面上に一様分布させるソフトウェアGSS Generator
https://www.jstage.jst.go.jp/article/geoinformatics/12/1/12_1_3/_article/-char/ja/
View file0.cpp
#define SSD1306_I2C_ADDRESS 0x3D // 011110+SA0+RW - 0x3C or 0x3D
View file0.txt
function saveCanvas () {
const canvasDataUrl = myCanvas.toDataURL()
const decoded = dataUriToBuffer(canvasDataUrl)
fs.writeFile(imageFilePath, decoded, (err) => {
if (err) {
window.alert('ファイルの保存に失敗しました')
console.log(err)
} else {
window.alert('ファイルを保存しました')
}
View file0.txt
peripheral discovered (xxxxxxxxxxxx with address <xx:xx:xx:xx:xx:xx, public>, connectable true, RSSI -68:
hello my local name is:
ButtonLE
can I interest you in any of the following advertised services:
["19b10010e8f2537e4f6cd104768a1214"]
View esp8266_cwrap.rb
require 'serialport'
port = "/dev/ttyAMA0"
bps = 115200
class ESP8266
def initialize(port, bps)
@serial_port = SerialPort.new(port, bps)
end
View gist:1347947
class Storage
constructor: ->
@init()
init: ->
@table = {}
@keys = []
@length = 0
clear: ->
View appengine_entity.py
# ref: http://code.google.com/intl/ja/appengine/docs/python/datastore/entitiesandmodels.html#Properties_and_Types
# reserved attribute names by the Model class
#
# all, app, copy, delete, entity, entity_type
# fields, from_entity, get, gql, instance_properties
# is_saved, key, key_name, kind, parent, parent_key
# properties, put, setdefault, to_xml, update
# --------------
View appengine_model.py
# ref: http://code.google.com/intl/ja/appengine/docs/python/datastore/entitiesandmodels.html
# -----
# Model
# ref: http://code.google.com/intl/ja/appengine/docs/python/datastore/modelclass.html
# -----
from google.appengine.ext import db
class Pet(db.Model):
View search_for_hiragana_by_google.rb
#!/usr/bin/ruby19
# coding: utf-8
require 'mechanize'
hiragana_characters = %w(
あ い う え お
か き く け こ
さ し す せ そ
た ち つ て と