This file contains hidden or 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
| import socket | |
| import threading | |
| import sys | |
| def receive_from(connection): | |
| buffer = b'' | |
| # first respond allow 2 second timeout | |
| connection.settimeout(2) |
This file contains hidden or 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 tkinter import * | |
| import requests | |
| import json | |
| import serial | |
| import pymodbus | |
| from pymodbus.client.sync import ModbusSerialClient | |
| barcode = "" | |
| toggle = True |
This file contains hidden or 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
| <?php | |
| $prefix = 'OMS'; | |
| $namespace = 'App\\Models\\' . $prefix; | |
| $swagger = json_decode(file_get_contents($argv[1])); | |
| mkdir("gen"); | |
| mkdir("gen/models"); | |
| mkdir("gen/migrations"); | |
| foreach ($swagger->definitions as $class => $def) { |
This file contains hidden or 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
| swagger: "2.0" | |
| info: | |
| version: "1.0" | |
| title: "GPM Endpoints" | |
| description: > | |
| API follow the following conventions | |
| - GET: Retrieval of an object | |
| - POST: Upsert object |
This file contains hidden or 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
| <p> | |
| 尊敬的先生/女士,我们要感谢您的参与。希望再次与您进行调查。 | |
| <br><br> | |
| 谢谢.<br> | |
| 项目经理<br> | |
| </p> |
This file contains hidden or 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
| /* | |
| http://stackoverflow.com/questions/9061800/how-do-i-autocrop-a-uiimage/40780523#40780523 | |
| */ | |
| import UIKit | |
| extension UIImage { | |
| func trim() -> UIImage { | |
| let newRect = self.cropRect |