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
var jsoncom = { | |
'company': [{ | |
'companyname': '申通快递', | |
'shortname': '申通', | |
'tel': '95543', | |
'url': 'st', | |
'code': 'shentong', | |
'hasvali': 0, | |
'comurl': 'http://www.sto.cn', | |
'isavailable': '0', |
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 scrapy | |
import pymysql.cursors | |
import datetime | |
from tutorial.items import CKCItem | |
class CKCSpider(scrapy.Spider): | |
name = "ckc" | |
allowed_domains = ["ckc.zju.edu.cn"] | |
start_urls = [ |
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
#include <iostream> | |
#include "gmp.h" | |
using namespace std; | |
uint64_t SimpCalc(int Y, int X) { | |
auto f = new uint64_t[X + 1]; | |
uint64_t sum; | |
memset(f, 0, sizeof(uint64_t) * (X + 1)); | |
f[1] = 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
<h3>Convert UCF to XDC</h3> | |
<?php | |
$handle = isset($_POST['handle']) && !empty($_POST['handle']) ? $_POST['handle'] : null; | |
if ($handle === null) { | |
echo ' | |
<form method="POST"> | |
<textarea name="handle" rows="20" style="width:90%; max-width: 640px"></textarea> | |
<br> |
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
//#define CARS | |
#define I_MAX 70 | |
float rand(vec2 n) { | |
return fract(sin((n.x*1e2+n.y*1e4+1475.4526)*1e-4)*1e6); | |
} | |
float noise(vec2 p) | |
{ | |
p = floor(p*200.0); |
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
#!/usr/bin/python | |
# -*- coding: UTF-8 -*- | |
import smtplib | |
from email.mime.text import MIMEText | |
from email.utils import formataddr | |
mail_host = "smpt.xxxx.com" | |
mail_user = "[email protected]" | |
mail_pass = "password" |
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
(() => { | |
const form = document.createElement("form"); | |
form.setAttribute("method", "post"); | |
form.setAttribute("action", "https://www.1point3acres.com/bbs/forum.php?mod=forumdisplay&fid=82&filter=sortid&sortid=164&orderby=dateline"); | |
/* form.setAttribute("target", "view"); */ | |
const hiddenField = (name, value) => { | |
const field = document.createElement("input"); | |
field.setAttribute("type", "hidden"); | |
field.setAttribute("name", name); | |
field.setAttribute("value", value); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<array> | |
<dict> | |
<key>phrase</key> | |
<string>˙Ꙫ˙</string> | |
<key>shortcut</key> | |
<string>vv</string> | |
</dict> |
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
#!/bin/sh | |
FLASH_TIME="$(awk ' | |
$1 == "Installed-Time:" && ($2 < OLDEST || OLDEST=="") { | |
OLDEST=$2 | |
} | |
END { | |
print OLDEST | |
} | |
' /usr/lib/opkg/status)" |
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
{ | |
"description": "Keep 'spacebar' from being pressed twice", | |
"manipulators": | |
[ | |
{ | |
"from": { "key_code": "spacebar" }, | |
"parameters": { "basic.to_if_held_down_threshold_milliseconds": 50 }, | |
"to_if_held_down":[ | |
{ | |
"key_code": "spacebar", |
OlderNewer