Skip to content

Instantly share code, notes, and snippets.

View wingyplus's full-sized avatar
😶‍🌫️
Burned out

Thanabodee Charoenpiriyakij wingyplus

😶‍🌫️
Burned out
View GitHub Profile
@wingyplus
wingyplus / lab3-q5.asm
Created January 30, 2011 18:51
Question 3.6 - 5
We couldn’t find that file to show.
@wingyplus
wingyplus / lab5-q1.asm
Created February 13, 2011 11:12
lab5 question
ORG 8000H
MOV P1, #0FFH
MOV DPTR, #0E060H
LOOP: JNB P1.0, CHECK0
JNB P1.1, SendData1
JNB P1.2, SendData2
JNB P1.3, SendData3
JMP LOOP
@wingyplus
wingyplus / xBase.go
Created May 31, 2011 11:46
Convert Base Number
// Program support xbase 2 - 10
package main
import (
"fmt"
"flag"
"strconv"
"os"
)
@wingyplus
wingyplus / loop.go
Created June 3, 2011 06:50
Loop exam.
package main
import (
"fmt"
"strconv"
"os"
)
func main () {
start, _ := strconv.Atoi (os.Args[1])
@wingyplus
wingyplus / lc.go
Created June 8, 2011 13:29
line count
package main
import (
"io/ioutil"
"fmt"
"os"
)
func main () {
if len (os.Args) > 1 {
@wingyplus
wingyplus / too.go
Created June 8, 2011 17:00
find answer of T, O, G, D
/*
3996
O+O+O+O = D
N+O+O+O+O = O
M+T+T+T+T = GO
33
899
899
899
899
@wingyplus
wingyplus / echo.go
Created June 9, 2011 16:53
echo like echo in bash terminal
package main
import (
"os"
"fmt"
)
func main () {
if len (os.Args) > 1 {
s := ""
@wingyplus
wingyplus / pascaltriangle.go
Created June 14, 2011 18:20
Pascal's Triangle
package main
import "fmt"
func Factorial (n int) int {
if n == 0 {
return 1
}
return n * Factorial (n - 1)
@wingyplus
wingyplus / DoubleLinkList.java
Created June 23, 2011 07:27
Learning Linklist implement with java language
@wingyplus
wingyplus / plate.java
Created June 28, 2011 16:26
Problem A. License plate
class plate {
public static void main (String[] args) {
String input = System.console().readLine();
String word = "";
for (int i = 0; i < input.length(); i++) {
if (input.charAt(i) == ' ') {
check (word);
word = "";
} else if (i == input.length() - 1) {