Skip to content

Instantly share code, notes, and snippets.

View pyk's full-sized avatar
🌐

pyk pyk

🌐
View GitHub Profile
@pyk
pyk / resolve.go
Last active August 29, 2015 14:01
package main
import (
"net"
"os"
"fmt"
)
func main() {
// if script running without argument, give usage information
@pyk
pyk / display.md
Last active August 29, 2015 14:01
customize tab on ubuntu terminal

display

package your_package;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
[Desktop Entry]
Version=0.1
Name=Processing
Comment=Processing
Exec=/path/to/exec/processing
Icon=/path/to/exec/lib/icon/some.png
Terminal=false
Type=Application
Categories=Application;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Wisdom - Startup Quote API</title>
<!-- Bootstrap -->
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
@pyk
pyk / plot.p
Created February 7, 2015 03:48
gnuplot template
# The graph title
set title "Request time benchmark by pyk at github"
# legend/key
set key right top
# label x & y axis
set xlabel "requests"
set ylabel "ttime (ms)"
@pyk
pyk / input.txt
Created March 12, 2015 15:49
Read data from a file using go language. Read more here https://golang.kertaskampus.com/How-To-Read-Data-From-A-File/
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua.
@pyk
pyk / output.go
Created March 14, 2015 07:13
An example program that write data to a file in Go programming language. Learn more https://golang.kertaskampus.com/write-data-to-a-file/
package main
import (
"fmt"
"log"
"os"
)
func main() {
file, err := os.OpenFile("output.txt", os.O_RDWR, os.ModePerm)
john 16 male
alice 17 female
brian 17 male
ammy 15 female
@pyk
pyk / markdown.css
Last active August 29, 2015 14:19 — forked from imjasonh/markdown.css
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}