Skip to content

Instantly share code, notes, and snippets.

@jkym
jkym / telemetry2.go
Created December 13, 2018 17:06
Decode UDP Telemetry & Websocket Server
package main
import (
"bytes"
"encoding/binary"
"encoding/json"
"log"
"net"
"net/http"
@jkym
jkym / telemetry.go
Created December 12, 2018 15:35
Decode UDP Telemetry
package main
import (
"bytes"
"encoding/binary"
"encoding/json"
"log"
"net"
)
@jkym
jkym / telemetry.go
Created September 27, 2018 17:01
Receive telemetry data from F1 2018
package main
import (
"log"
"net"
"os"
)
// とりあえず受けてPrintまで
func main() {
@jkym
jkym / sample_api_wrapper.rb
Created September 20, 2016 07:39
API Wrapperのサンプル
# Sample API Wrapper
# see: http://www.justinweiss.com/articles/3-ways-to-configure-your-ruby-api-wrappers/
module SomeApi
module Config
VALID_OPTIONS_KEYS = [:endpoint, :api_key]
attr_accessor *VALID_OPTIONS_KEYS
DEFAULT_ENDPOINT = 'http://api.foo.com/v1'
def self.extended(base)
@jkym
jkym / sample.md
Last active March 18, 2016 09:23

Title

Hi, my name is hogehoge.


Lists

  • List1
  • List2
@jkym
jkym / index.php
Created June 13, 2012 03:02
instagram api test - get my photos
<?php
/**
* instagram api test script
*/
$client_id = 'CLIENT ID';
$client_secret = 'CLIENT SECRET';
$redirect_uri = 'REDIRECT URI';
if ($_GET['action'] == 'auth')
# CentOS 6.2 x86_64 setup script for sakura vps
# id:jkym99
# setup script configuration
# Hostname(optional)
HOST_NAME='example.com'
# root password(optional)
ROOT_PASSWORD='hogehoge'