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 ( | |
"bufio" | |
"fmt" | |
"io" | |
"net" | |
) | |
type Client struct { |
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 ( | |
"bufio" | |
"net" | |
) | |
type Client struct { | |
incoming chan string | |
outgoing chan string |
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
/** | |
* 全局变量 | |
*/ | |
var AG_debug = false; | |
var AG_time = 0; | |
var AG_startTime = 0; | |
var AG_running = false; | |
var AG_stages = []; | |
var AG_bufCanvas = null; | |
var AG_bufCtx = null; |
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
;(function() { | |
/* | |
* Author: Gui Lin | |
* guileen AT gmail DOT com | |
*/ | |
function $ (selector, el) { | |
return (el||document).querySelector(selector); | |
} | |
function $$ (selector, el) { |
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
//// https://github.com/FasterXML/jackson-databind/blob/master/src/main/java/com/fasterxml/jackson/databind/util/ISO8601Utils.java | |
package com.fasterxml.jackson.databind.util; | |
import java.util.*; | |
import java.text.ParsePosition; | |
import java.text.ParseException; | |
/** | |
* Utilities methods for manipulating dates in iso8601 format. This is much much faster and GC friendly than |
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
_oo0oo_ | |
o8888888o | |
88" . "88 | |
(| -_- |) | |
0\ = /0 | |
___/`---'\___ | |
.' \\| |-- '. | |
/ \\||| : |||-- \ | |
/ _||||| -:- |||||- \ | |
| | \\\ - --/ | | |
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
/* 头文件begin */ | |
#include "main_activity_UninstalledObserverActivity.h" | |
/* 头文件end */ | |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
/* 内全局变量begin */ | |
static char c_TAG[] = "UninstalledObserverActivity.init"; |
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
var http = require('http'); | |
var httpProxy = require('http-proxy'); | |
var proxy = httpProxy.createProxyServer({}); | |
var cclog = require('cclog'); | |
var fs = require('fs'); | |
var zlib = require('zlib'); | |
var i = 1; | |
http.createServer(function(req, res) { | |
// req.setEncoding('utf-8'); |
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
!!! 5 | |
html(lang='en') | |
head | |
meta(charset='utf-8') | |
meta(http-equiv='X-UA-Compatible', content='IE=edge') | |
meta(name='viewport', content='width=device-width, initial-scale=1') | |
meta(name='description', content='') | |
meta(name='author', content='') | |
link(rel='shortcut icon', href='../../assets/ico/favicon.ico') | |
title Blog Template for Bootstrap |
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
#!/bin/sh | |
# If the user is not root | |
if [ "$USERNAME" != "root" ] | |
then | |
# Dislpay a notice and stop | |
echo "Sorry, only root can use this command." | |
exit 1 |