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
class Node(object): | |
def __init__(self, ID): | |
self.next_nodes = [] | |
self.prev_node = None | |
self.explored = False | |
self.ID = ID | |
pass |
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
"""warp all coordinate parameters with function c(x)""" | |
import os | |
import re | |
try: | |
filename = argv[1] | |
except NameError: | |
filename = "grinding.py" | |
f = open(filename) | |
datas = f.read().split("\n") |
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
"""warp all coordinate parameters with function c(x)""" | |
import os | |
import re | |
try: | |
filename = argv[1] | |
except NameError: | |
filename = "input.au3" | |
f = open(filename) | |
datas = f.read().split("\n") |
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
from ctypes import * | |
import time | |
MOUSEEVENTF_LEFTDOWN = 2 | |
MOUSEEVENTF_LEFTUP = 4 | |
KEYCODE_LBUTTON = 0x01 | |
KEYCODE_RBUTTON = 0x02 | |
KEYCODE_MBUTTON = 0x04 | |
KEYCODE_0 = 0x30 | |
KEYCODE_A = 0x41 |
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
/** | |
* makin 2016 | |
*/ | |
#include <stdint.h> | |
#include <stdio.h> | |
#define MAP_POS_X 0 | |
#define MAP_POS_Y 1 | |
#define MAP_NEXT_NUM 2 | |
#define MAP_EXPLORED 3 |
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
<link type="text/css" rel="stylesheet" href="js/themes/ui-lightness/ui.all.css" /><script src="js/jquery-1.8.0.min.js"></script> | |
<script src="js/ui/ui.core.js"></script> | |
<script src="js/ui/ui.datepicker.js"></script> | |
<script src="js/ui/i18n/ui.datepicker-id.js"></script> | |
<script type="text/javascript"> | |
$(document).ready( | |
function(){ | |
$("#datestart").datepicker( | |
{ | |
dateFormat : "dd-mm-yy", |
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/env python | |
#-- pip install pyserial | |
#-- pip install PyMySQL | |
from serial import Serial #-- untuk serial | |
import pymysql.cursors #-- MySQL | |
import time #-- delay | |
DBHOST = "192.168.1.52" |
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
#include <stdio.h> | |
int main() { | |
char A[200]; | |
char B[200]; | |
char T[200]; | |
size_t lenA,lenB,maxLen; | |
int i; | |
int digitA,digitB,digitH,carry; | |
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
def DatabaseRunQuery(self,query): | |
self.initDatabase() | |
cursor = self.db.cursor() | |
try: | |
cursor.execute(query) | |
except Exception, e: | |
print repr(e) | |
self.statusbar.showMessage(repr(e),20000) | |
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
def DataMaster_Popup(self,mother,text,function_callback,FW=500,FH=200): | |
WinW = mother.geometry().width() | |
WinH = mother.geometry().height() | |
FrameWindowS = self.findChildren(QtGui.QFrame,_fromUtf8("DataMaster_Popup_FrameWindowS")) | |
if (len(FrameWindowS)<1): | |
FrameWindowS = QtGui.QFrame(mother) | |
else: | |
FrameWindowS = FrameWindowS[0] | |
FrameWindowS.setGeometry(QtCore.QRect((WinW/2)-FW/2+10, WinH/2- FH/2+10, FW, FH)) | |
FrameWindowS.setObjectName(_fromUtf8("DataMaster_Popup_FrameWindowS")) |
NewerOlder