Skip to content

Instantly share code, notes, and snippets.

View pureexe's full-sized avatar
💻
No

Pakkapon Phongthawee pureexe

💻
No
View GitHub Profile
@pureexe
pureexe / gist:1560012
Created January 4, 2012 13:21
explistview.au3
#Region Header
; #INDEX# =======================================================================================================================
; Title .........: ExpListView
; AutoIt Version : 3.3.5.0
; Language ......: English
; Description ...: Functions for working with Explorer ListViews.
; Author(s) .....: Beege
; ===============================================================================================================================
; #CURRENT# =====================================================================================================================
@pureexe
pureexe / gist:1560017
Created January 4, 2012 13:23
[exp]safe-explorer.au3
#include <GuiConstantsEx.au3>
#include <GuiListView.au3>
#include <WindowsConstants.au3>
#include <File.au3>
#include <ExpListView.au3>
OnAutoItExitRegister('_Exit')
if $CmdLine[0]<>0 Then
$mainroot=$CmdLine[1]
Else
$mainroot=FileSelectFolder("เลือกfolder","","","")
@pureexe
pureexe / gist:2426027
Created April 20, 2012 04:34
จากที่ คุณ max ฝากทำ
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>debug</title>
</head>
<body>
<p>
@pureexe
pureexe / w07_fix100.cpp
Created October 22, 2012 16:23
ข้อ7 สอวนค่าย 1 หา Palindome ที่ใกล้ที่สุด
#include<stdio.h>
int chk(int in)
{
int u[100],ct=0,i;
if(in<0)
return 0;
while(in>=1)
{
u[ct++]=in%10;
in/=10;
@pureexe
pureexe / intrev.h
Created October 23, 2012 05:26
กลับค่าตัวเลขแล้ว return int ที่กลับค่า
#ifndef INTREV_H_INCLUDED
#define INTREV_H_INCLUDED
int pow_int(int base,int n)
{
int ans=1,i;
for(i=1;i<=n;i++)
ans*=base;
return ans;
}
int intrev(int in)
@pureexe
pureexe / Anagram.cpp
Created October 24, 2012 12:14
สอวน ข้อ 2 อนาแกรม (เช็ค String ไปกลับ)
#include<cstdio>
#include<algorithm>
#include<cstring>
using namespace std;
int main()
{
char a[20001],b[20001];
gets(a);
gets(b);
strlwr(a);
@pureexe
pureexe / Snake.html
Created October 25, 2012 00:58
เกมส์งู
<html>
<body onkeydown="al()">
<center><canvas id="myCanvas" width="1000" height="700" style="border:1px solid #c3c3c3;">
Your browser does not support the HTML5 canvas tag.
</canvas></center>
<br>
<input tyep="text" id="debug_x" />
<input tyep="text" id="debug_y" />
<br>
@pureexe
pureexe / song_of_memories_ver_ipst01.c
Created November 4, 2012 10:03
"song of memories" ver.ipst 01
/**
Project Name :: Song Of Memories
Author :: ?
LC :: ?
Description :: BringLed is game :D
System Requirement ::
Device :: IPSTmicrobox
Compiler :: AVR16mhz
Device Module ::
@pureexe
pureexe / Lamp_life.c
Last active December 11, 2015 08:08
โค้ดของภูมิ Lamplife ipst microbox [Update 19/01/2556 12:05]
/**
*** หมายเหตุ สวิตซ์ ให้ต่อที่ Pa 1
ไฟใหญ่ ให้ต่อที่ Pd 0
ไฟเล็ก ให้ต่อที่ Pd 1, Pd 2
**/
#include<ipst.h>
int pin_a(int port)
{
if(!in_a(port))
{
@pureexe
pureexe / Project-PaPo.c
Last active December 11, 2015 19:08
สัญญาณกันขโมยของลูกปลา ฉบับ ง่ายโคตรๆๆ
/***
Project : PaPo
ลำโพง ให้ต่อ PD1 สวิตต่อ PA1
***/
#include<in_out.h>
#include<sound.h>
int main()
{
bool isactive=false;
while(1)