Skip to content

Instantly share code, notes, and snippets.

import scala.pickling.Defaults._
import scala.pickling.json.{JSONPickleBuilder, JSONPickleFormat, JsonFormats}
import scala.pickling.{Output, PBuilder, PickleTools, StringOutput}
implicit val pickleFormat: JSONPickleFormat = new JSONPickleFormat {
override def createBuilder() = new JSONPickleBuilder(this, new StringOutput) with PickleTools {
hintStaticallyElidedType()
}
override def createBuilder(out: Output[String]): PBuilder = new JSONPickleBuilder(this, out) with PickleTools {
hintStaticallyElidedType()
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Android/sdk_google_phone_x86/generic_x86:6.0/MASTER/2524533:userdebug/test-keys'
Revision: '0'
ABI: 'x86'
pid: 3009, tid: 3009, name: com.tencent.mm >>> com.tencent.mm <<<
signal 11 (SIGSEGV), code 128 (SI_KERNEL), fault addr 0x0
eax 10012000 ebx b1391ff4 ecx b1395508 edx 100121e0
esi 041617a0 edi b15df940
xcs 00000073 xds 0000007b xes 0000007b xfs 00000007 xss 0000007b
eip b11d3dd1 ebp 10012000 esp 10023f20 flags 00210282
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=MMB29U
ro.build.display.id=MMB29U
ro.build.version.incremental=2495654
ro.build.version.sdk=23
ro.build.version.preview_sdk=0
ro.build.version.codename=REL
ro.build.version.all_codenames=REL
@wuhx
wuhx / webweixin.js
Last active September 26, 2018 01:07
!function() {
var e, t = function() {}
, o = ["assert", "clear", "count", "debug", "dir", "dirxml", "error", "exception", "group", "groupCollapsed", "groupEnd", "info", "log", "markTimeline", "profile", "profileEnd", "table", "time", "timeEnd", "timeStamp", "trace", "warn"], n = o.length;
0 == /mmdebug/.test(location.search) && location.href.indexOf("dev.web.weixin") < 0 && (window.console = {});
for (var r = window.console = window.console || {}; n--; )
e = o[n],
r[e] || (r[e] = t)
}
(),
angular.module("Controllers", []),
@wuhx
wuhx / gzip.clj
Last active December 22, 2015 14:28 — forked from bpsm/gist:1858654
(ns clj-gunzip.core
(:require [clojure.java.io :as io])
(:require [clojure.string :as str])
(:import java.util.zip.GZIPInputStream
java.util.zip.GZIPOutputStream))
(defn gunzip
"Writes the contents of input to output, decompressed.
input: something which can be opened by io/input-stream.
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt appendhistory autocd extendedglob nomatch
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/wuhx/.zshrc'
@wuhx
wuhx / openswan
Created October 26, 2012 03:11
openswan
#add for openswan
net.ipv4.ip_forward = 1
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.send_redirects = 0
net.ipv4.conf.eth0.send_redirects = 0
#net.ipv4.conf.eth1.send_redirects = 0
net.ipv4.conf.lo.send_redirects = 0
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv4.conf.eth0.accept_redirects = 0
// ==UserScript==
// @name 500px graber
// @namespace http://500px.com/
// @description grab photo exif info
// @include http://500px.com/*
// @copyright 2012+, You
// ==/UserScript==
// a function that loads jQuery and calls a callback function when jQuery has finished loading
function addJQuery(callback) {