Skip to content

Instantly share code, notes, and snippets.

Christian Ehrhardt chrixian

Block or report user

Report or block chrixian

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@chrixian
chrixian / 0_reuse_code.js
Created Jul 21, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@chrixian
chrixian / xterm-256color.svg
Created Jan 21, 2017 — forked from jasonm23/xterm-256color.svg
Xterm 256color mode color chart, organised into sections.
View xterm-256color.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chrixian
chrixian / mo_vs.proxy.js
Created Nov 19, 2016 — forked from ebidel/mo_vs.proxy.js
MutationObserver vs. Proxy to detect .textContent changes
View mo_vs.proxy.js
<!--
This demo shows two ways to detect changes to a DOM node `.textContent`, one
using a `MutationObserver` and the other using an ES2015 `Proxy`.
From testing, a `Proxy` appears to be 6-8x faster than using a MO in Chrome 50.
**Update**: removing the `Proxy` altogether speeds up the MO to be inline with the Proxy.
This has something to do with how the browser queues/prioritizes Proxies over MO.
@chrixian
chrixian / components.my-component.js
Created Oct 17, 2016 — forked from nfc036/components.my-component.js
Action bubbling from components
View components.my-component.js
import Ember from 'ember';
export default Ember.Component.extend({
layout: Ember.computed.alias('contentTemplate'),
});
@chrixian
chrixian / fiddle.response.json
Last active Aug 29, 2015
v0.18 staticdata.txt
View fiddle.response.json
{
"ancients": {
"3": {
"levelAmountFormula": "solomonRewards",
"id": 3,
"maxLevel": 0,
"name": "Solomon, Ancient of Wisdom",
"flavorText": "The ancients have a lingering, noticeable effect on everyone who approaches them. As you approach Solomon, you can't help but reflect on your recent decisions. What has this world done to you that so many of its creatures deserve to die? Even the monsters in other universes are not safe from your wrath. You realize that you desire to kill them all, and to take all their gold, but you're not entirely sure why... You feel the urge to contemplate many things.",
"paramName": "",
"levelCostFormula": "quadratic",
View gist:63b30ba9fbddd068b0cc
F1::
If Running
SetTimer TheLoop, Off
Else {
SetTimer TheLoop, 60000
}
Running := !Running
Return
View yggdrasil.py
import urllib.request as request
from urllib.error import HTTPError
import json
class YggAuth:
def __init__(self,
client_token=None,
access_token=None,
username=None,
password=None
View Assembly
import me.sedlar.osrs.updater.util.identify.Mask;
import me.sedlar.osrs.updater.util.identify.block.Block;
import me.sedlar.osrs.updater.util.identify.block.BlockCache;
import org.objectweb.asm.tree.AbstractInsnNode;
import org.objectweb.asm.tree.ClassNode;
import org.objectweb.asm.tree.MethodNode;
import org.objectweb.asm.util.Printer;
import java.util.ArrayList;
import java.util.List;
View Agent.java
import com.sun.tools.attach.AgentInitializationException;
import com.sun.tools.attach.AgentLoadException;
import com.sun.tools.attach.AttachNotSupportedException;
import com.sun.tools.attach.VirtualMachine;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.lang.management.ManagementFactory;
import java.lang.management.RuntimeMXBean;
You can’t perform that action at this time.