Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am kichjang on github.
  • I am bookeith (https://keybase.io/bookeith) on keybase.
  • I have a public key ASDnGyiQDCjJwkM3Z1I-s0QyavR0WtsFbAEJppyZpvdeUwo

To claim this, I am signing this object:

@KiChjang
KiChjang / gist:7334ed5ddaf160d491eb02fae12eb864
Created February 6, 2021 22:06
CELO alfajores testnet addresss for contract deployment
0x4640f9A040D61F18a8f1Ca20074A9249806f84DC
@KiChjang
KiChjang / gist:12a547ed221245626366952b9be36269
Created February 6, 2021 21:41
CELO alfajores testnet address
0xD01e9524B94b362ebF518828fB77AC80B25ec3eF
@KiChjang
KiChjang / unused.rs
Created March 14, 2018 19:18
unused lint MIR dump
// MIR for `main`
// source = MirSource { def_id: DefId(0/0:3 ~ lint_unused_mut_variables[317d]::main[0]), promoted: None }
// pass_name = SimplifyCfg-initial
// disambiguator = after
fn main() -> (){
let mut _0: (); // return place
scope 1 {
let mut _1: i32; // "a" in scope 1 at src/test/compile-fail/lint-unused-mut-variables.rs:24:9: 24:14
scope 3 {
unsafe extern fn open(cx: *mut JSContext, _obj: HandleObject, this: *const XMLHttpRequest, args: *const JSJitMethodCallArgs) -> bool {
return wrap_panic(panic::AssertUnwindSafe(|| {
let this = &*this;
let args = &*args;
let argc = args._base.argc_;
let argcount = cmp::min(argc, 5);
match argcount {
2 => {
let arg0: ByteString = match FromJSValConvertible::from_jsval(cx, args.get(0), ()) {
warning: unused variable: `foo`
--> src/test/compile-fail/borrowck/borrowck-and-init.rs:14:9
|
14 | let foo = false && { i = 5; true };
| ^^^
|
= note: #[warn(unused_variables)] on by default
= note: to avoid this warning, consider using `_foo` instead
warning: unused variable: `bar`
// MIR for `main`
// source = Fn(NodeId(4))
// pass_name = NLL
// disambiguator = after
fn main() -> () {
let mut _0: (); // return pointer
scope 1 {
let _1: isize; // "i" in scope 1 at src/test/compile-fail/borrowck/borrowck-and-init.rs:12:9: 12:10
scope 2 {
@KiChjang
KiChjang / maps.js
Created November 22, 2016 18:57
Google maps function
efa = function() {
var a = _.k.MessageChannel;
"undefined" === typeof a && "undefined" !== typeof window && window.postMessage && window.addEventListener && !_.kc("Presto") && (a = function() {
var a = window.document.createElement(_.Vea);
a.style.display = _.Wa;
a.src = "";
window.document.documentElement.appendChild(a);
var b = a.contentWindow,
a = b.document;
a.open();
<!DOCTYPE html>
<meta charset="utf-8">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<iframe id=testframe src="/common/blank.html"></iframe>
<script>
var simple_tests = [
{
name: "text.simple",
input: "<input name=foo value=bara>",
<script>
test(function() {
var client = new XMLHttpRequest(),
urlstart = location.host + location.pathname.replace(/\/[^\/]*$/, '/'),
user = token();
client.open("GET", location.protocol+'//'+urlstart + "resources/auth1/auth.py", false)
client.setRequestHeader("x-user", user)
client.send(null)
client.open("GET", location.protocol+'//'+urlstart + "resources/auth1/auth.py", false, user, 'pass')
client.setRequestHeader("x-user", user)