Skip to content

Instantly share code, notes, and snippets.

View trigun0x2's full-sized avatar

Jeffrey Tong trigun0x2

View GitHub Profile
047958bef658ef27fec2c7dc76fe533b8b70f71a7d9eea2d0e0fe8ec67f695c3459d432eca924314b1742c58a0d7844628c98c990dee84481dd3ebdfdd828dcbb2;karljakober
@trigun0x2
trigun0x2 / cvim.vim
Last active December 17, 2016 20:38
cvim
let mapleader = ","
map ; :
"----- DEFAULT VARS ------
let scrollstep = 90
let scrollduration = 30
set autoupdategist
map <C-l> nextTab
_init_store: function() {
self = this;
TA.items.list({ type: 'stream-effects'}).then(function(res) {
console.log(res);
res.forEach((item) => {
let html = `
<li>
<div class="store_grid-item">
<span class="store_grid-item-label">${item.price}</span>
<div data-item_id="${item.id}"
@trigun0x2
trigun0x2 / JS Loading in web frameworks like Elixir
Created February 9, 2016 22:06 — forked from napcs/JS Loading in web frameworks like Elixir
Per-view JavaScript functions for Phoenix. Keeps things out of global space, allows a page to specifically invoke the JS it needs.
How to load page-specific JS functions and pass values to those functions when JS is loaded below your views.
source 'https://rubygems.org'
gem 'rails', '3.2.18'
gem 'rake'
gem 'puma'
gem 'foreman'
group :development do
gem 'better_errors', '>= 0.3.2'
gem 'binding_of_caller', '>= 0.6.8'
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDC2gXuiZdSKwmiToI709Oot+o9kUyuPupmsQSconsYf7Iz1GRZa7iwjKL8dhidvOmxMMh+YmpotJ8VcWlU2qpw5CjhuoyaFwjVneOBD6wN39U64pZKJmc66MvUGU6mnO31uQYOWqeN1+OGlxpgaKiqvGcdK1cGk5x9WmXIVOGqAKYdMZw1iTQd8qtyK58Hj23bf89MmS1uJzrinsE7pLT+tzr8eI+64NbrIzhTZ7WppYuEQjYMw+jv2KxPD8TrD4EFSo+gGpt56sV7UYDuoAecWtyvAqbqouZSFsQFfKltKLXkCvL/4/Ef+spOUqifWmo08Ji1UO9B/E7ph56WoWb5 trigun0x2@gmail.com
{"id":1927,"image":"GVG_001","set":13,"collectible":1,"quality":1,"icon":"inv_misc_ticket_tarot_elemental02","type":5,"cost":2,"classs":8,"name":"Flamecannon","description":"Deal 4 damage to a random enemy minion.",popularity:8},{"id":1928,"image":"GVG_002","set":13,"collectible":1,"quality":1,"icon":"inv_misc_ticket_tarot_beasts_01","type":4,"cost":2,"attack":2,"health":3,"classs":8,"race":17,"name":"Snowchugger","description":"Freeze any character damaged by this minion.",popularity:7},{"id":1929,"image":"GVG_003","set":13,"collectible":1,"quality":3,"icon":"inv_misc_ticket_tarot_elemental02","type":5,"cost":2,"classs":8,"name":"Unstable Portal","description":"Add a random minion to your hand. It costs (3) less.",popularity:9},{"id":1934,"image":"GVG_004","set":13,"quality":3,"icon":"inv_misc_ticket_tarot_beasts_01","type":4,"cost":4,"attack":5,"health":4,"classs":8,"collectible":1,"name":"Goblin Blastmage","description":"Battlecry: If you have a Mech, deal 4 damage randomly split among all enemies.",popula
@trigun0x2
trigun0x2 / gist:8fd796629232f3ab8c3e
Created November 5, 2014 14:26
Hearthstone log starting from game open until one match
This file has been truncated, but you can view the full file.
Initialize engine version: 4.2.2f1 (20df86865aa0)
GfxDevice: creating device client; threaded=0
Direct3D:
Version: Direct3D 9.0c [nvumdshim.dll 9.18.13.3523]
Renderer: NVIDIA GeForce GTX 670
Vendor: NVIDIA
VRAM: 1985 MB (via DXGI)
Caps: Shader=30 DepthRT=1 NativeDepth=1 NativeShadow=1 DF16=0 DF24=0 INTZ=1 RAWZ=0 NULL=1 RESZ=0 SlowINTZ=0
Begin MonoManager ReloadAssembly
Platform assembly: C:\Program Files (x86)\Hearthstone\Hearthstone_Data\Managed\UnityEngine.dll (this message is harmless)
[LoadingScreen]
LogLevel=1
FilePrinting=false
ConsolePrinting=true
ScreenPrinting=false
[Zone]
LogLevel=1
FilePrinting=false
ConsolePrinting=true
$('span').filter(function(){
var color = $('span').last().css('background-color');
return($(this).css('background-color') != color );
}).last().click();
$('span').last().click();