I hereby claim:
- I am vevix on github.
- I am vevix (https://keybase.io/vevix) on keybase.
- I have a public key whose fingerprint is 5339 A16C 444A 97BC 032F 2380 8962 FE71 D808 7F83
To claim this, I am signing this object:
| function confirm() { | |
| CustomEvent.observe(LiveEvents.LIVE_BEFORE_WINDOW_LOAD, function(win) { | |
| if (win.toString() !== "LiveWindowChatFloating") return; | |
| win.box.setToolbarCloseOnClick(function() { | |
| var confirm = window.confirm("Are you sure?"); | |
| if (confirm !== false) { | |
| CustomEvent.fire(LiveEvents.LIVE_EVENT, LiveEvents.LIVE_LEAVE_CHANNEL, this); | |
| this.fire(LiveEvents.WINDOW_CLOSE); | |
| } |
I hereby claim:
To claim this, I am signing this object:
| package main | |
| import ( | |
| "fmt" | |
| "regexp" | |
| ) | |
| // Valid Go regexp: https://code.google.com/p/re2/wiki/Syntax | |
| var fixtures []string = []string{ |
| # https://github.com/jrgifford/delayed_paperclip/blob/master/lib/delayed_paperclip/attachment.rb#L94 | |
| # delayed_paperclip uses ActiveRecord::Relation#update_all which does not invoke | |
| # ActiveRecord callbacks such as after_save, this patch changes the update method | |
| # to use ActiveRecord::Relation#update | |
| module DelayedPaperclip | |
| module Attachment | |
| module InstanceMethods | |
| private | |
| def update_processing_column |
| # Uses Steam Market backend URL to list cheapest knife available for CS:GO | |
| # Checks if price is under the threshold and if so alert us | |
| require 'httparty' | |
| require 'nokogiri' | |
| class Market | |
| def initialize | |
| # {"success":true,"start":0,"pagesize":100,"total_count":362,"results_html": ...} | |
| @url = "http://steamcommunity.com/market/search/render/?query=appid%3A730%20Covert%20Knife&start=0&count=1&sort_dir=asc&sort_column=price" |
| package irc | |
| import( | |
| "net/textproto" | |
| "regexp" | |
| "time" | |
| ) | |
| var ( | |
| privmsg = regexp.MustCompile("^:([a-zA-Z0-9`_\\-]+)![a-zA-Z0-9/\\\\\\.\\-]+@[a-zA-Z0-9/\\\\\\.\\-]+ PRIVMSG (#[a-zA-Z0-9]+) :(.*)$") |
| using System; | |
| using System.Collections.Generic; | |
| using System.Reflection; | |
| namespace Pixel.Extensions | |
| { | |
| // http://stackoverflow.com/questions/8025890/is-there-a-much-better-way-to-create-deep-and-shallow-clones-in-c/8026574#8026574 | |
| public static class DeepCloneEx | |
| { | |
| public static T DeepClone<T>(this T original) |