Skip to content

Instantly share code, notes, and snippets.

View yuikns's full-sized avatar

Yu yuikns

View GitHub Profile
/**
* @preserve HTML5 Shiv 3.7.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
*/
!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&&(c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),t.elements=c+" "+a,j(b)}function f(a){var b=s[a[q]];return b||(b={},r++,a[q]=r,s[r]=b),b}function g(a,c,d){if(c||(c=b),l)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.cache[a].cloneNode():p.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!e.canHaveChildren||o.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),l)return a.createDocumentFragment();c=c||f(a);for(var e=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}function i(a,b){b.cache||(b.cache={},b.createElem=a.createE
# Dropbox
108.160.165.62 dropbox.com
108.160.166.62 dropbox.com
108.160.167.205 www.dropbox.com
23.21.206.219 forums.dropbox.com
23.23.104.199 dl.dropboxusercontent.com
108.160.166.189 d.dropbox.com
108.160.166.12 client-lb.dropbox.com
204.236.220.7 dl-client1.dropbox.com
204.236.220.9 dl-client2.dropbox.com
// for http://fun.coolshell.cn/unix.html
#include <stdio.h>
#include <string.h>
int main()
{
char * seq1 = "pvwdgazxubqfsnrhocitlkeymj";
char seq[32] = "";
for(int i = 0 ; i < strlen(seq1) ; i ++)
{
public void insertBatch(List<AcmAuthor2paper> objList) {
String sql = String.format("INSERT INTO %s.author2paper(id,aid,pid,position) VALUES (?,?,?,?)", dbName);
DBConnection conn = pool.getConnection();
PreparedStatement ps = null;
try {
conn.setAutoCommit(false);
ps = conn.prepareStatement(sql);
for (AcmAuthor2paper obj : objList) {
_constructPS(ps, obj);
package com.argcv.demo;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class MultiThreadDemo {
int counter = 0;
public class InsertThread extends Thread {
import pip
from subprocess import call
for dist in pip.get_installed_distributions():
call("pip install --upgrade " + dist.project_name, shell=True)
#!/bin/sh
# this bash is base on https://developer.github.com/v3/users/keys/#create-a-public-key
username='yourname'
password='yourpassword'
id_to_delete='123'
curl -X DELETE https://api.github.com/user/keys/$id_to_delete -u "$username:$password"
## use sense
enroll :
POST /auth/enroll
{
"name" : "yu",
"email" : "[email protected]",
"dname" : "Yu Jing",
"password" : "123456",
"title" : "nothing ",
#------------------------------------------------------------------------------
#
# Copyright (C) 2010 Artem Rodygin
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
37.221.161.235
66.240.236.119
71.6.135.131
71.6.167.142
77.247.181.162
77.247.181.164
77.247.181.165
79.134.235.5
94.126.178.1
94.242.246.23