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
good = { | |
"วันจันทร์": { | |
"บริวาร": ["ก", "ข", "ค", "ฆ", "ง"], | |
"อายุ": ["จ", "ฉ", "ช", "ซ", "ฌ", "ญ"], | |
"เดช": ["ฎ", "ฏ", "ฐ", "ฑ", "ฒ", "ณ"], | |
"ศรี": ["ด", "ต", "ถ", "ท", "ธ", "น"], | |
"มนตรี": ["ศ", "ษ", "ส", "ห", "ฬ", "ฮ"], | |
"อุตสาหะ": ["ย", "ร", "ล", "ว"], | |
"มูลละ": ["บ", "ป", "ผ", "ฝ", "พ", "ฟ", "ภ", "ม"] | |
}, |
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 main(): | |
# Input # | |
# first input: number of layer | |
input_layers = int(input()) | |
input_shapes = [] | |
for i in range(input_layers): | |
shape = str(input()) | |
# skip duplicate | |
if shape.upper() in input_shapes: |
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 <ESP8266WiFi.h> | |
#include <PubSubClient.h> | |
const char* ssid = "ssid_name"; | |
const char* password = "ssid_password"; | |
const char* mqtt_server = "broker.emqx.io"; | |
const char mqtt_username[50] = ""; | |
const char mqtt_password[50] = ""; | |
const int mqtt_port = 1883; |
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 is_prime(x): | |
print(x) | |
a = (x//i == x/i for i in range(x-1, 1, -1)) | |
print(" - ", list(a)) | |
prime = [] | |
for i in range(1, 10): | |
if is_prime(i): | |
prime.append(i) | |
# print(prime) |
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 tomcat:latest | |
COPY iforms.war /usr/local/tomcat/webapps/ | |
/* | |
docker run --name imysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=1234 -d mysql:latest | |
docker run -it -p 8080:8080 iform:0.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
#!/usr/bin/env python | |
""" | |
Author: Blythe LilYoojun | |
Lib Require: socks and Tor proxy | |
""" | |
import socket | |
import socks | |
import requests | |
import time |
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 ( | |
"github.com/jbcrail/ldap" | |
"fmt" | |
) | |
func main() { | |
server := "ldap01.example.com:389" |
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 | |
import urllib2 | |
from HTMLParser import HTMLParser | |
class Find(HTMLParser): | |
__dataTable = 0 | |
__data = [] | |
__recording = False | |
def __init__(self): |
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 | |
from fabric.api import * | |
from fabric.contrib.console import confirm | |
import sys | |
import os | |
import subprocess | |
env.hosts = ['192.168.1.8'] | |
env.user = 'root' |
NewerOlder