This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* LZ4 Study. | |
* (c) Robert Sung wook Shin All rights reserved. | |
* http://enjoytools.net, [email protected] | |
* | |
*/ | |
#include "stdafx.h" // empty except '#pragma once' | |
#include <stdio.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get all users | |
var url = "http://localhost:8080/api/v1/users"; | |
var xhr = new XMLHttpRequest() | |
xhr.open('GET', url, true) | |
xhr.onload = function () { | |
var users = JSON.parse(xhr.responseText); | |
if (xhr.readyState == 4 && xhr.status == "200") { | |
console.table(users); | |
} else { | |
console.error(users); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import sys | |
import threading | |
import queue | |
# from kivy.compat import queue | |
import serial | |
import time | |
import kivy | |
kivy.require('1.9.0') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf8 -*- | |
from kivy.app import App | |
from kivy.uix.floatlayout import FloatLayout | |
from kivy.graphics import Line | |
from kivy.uix.label import Label | |
from kivy.core.window import Window | |
from kivy.clock import Clock | |
import serial |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
__author__ = ('Kaan Akşit') | |
try: | |
import sys,time | |
from array import array | |
from jnius import autoclass | |
from jnius import cast |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem tidb build in pcbangstudio project folder - http://enjoytools.net/xe/board_vngc57/8978 | |
rem go get tidb | |
go get -v github.com/pingcap/tidb | |
rem build goyacc | |
go build -v -o bin/goyacc.exe src/github.com/pingcap/tidb/parser/goyacc/main.go | |
rem then below error message will be shown. Just go on. | |
rem can't load package: package github.com/pingcap/tidb: no Go files in blahblah_directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package utils | |
import ( | |
"encoding/json" | |
"io/ioutil" | |
"github.com/labstack/echo" | |
) | |
func BodyToJson(c echo.Context) (map[string]interface{}, error) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>WebSocket demo</title> | |
</head> | |
<body> | |
<div> | |
<form> | |
<label for="numberfield">Number</label> | |
<input type="text" id="numberfield" placeholder="12"/><br /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM tap+bridge cause blue screen | |
REM https://wiki.qemu.org/Documentation/Networking | |
REM using tap | |
REM start qemu-system-x86_64w.exe -vga std -nic tap,id=n0,ifname=tap0,script=no,downscript=no -boot c -m 2G -hda images/freebsd-11.3.qcow2 -smp sockets=1,cores=2 | |
REM not using tap | |
start qemu-system-x86_64w.exe -vga std -device rtl8139,netdev=n0 -netdev user,id=n0,hostfwd=tcp::2222-:22,hostfwd=tcp::8080-:80 -boot c -m 2G -hda images/freebsd-11.3.qcow2 -smp sockets=1,cores=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" |
OlderNewer