resque:workers
=> SET of "host:pid:raw,queue,list" stringsresque:worker:host:pid:raw,queue,list
=> STRING JSON of job payload for a running worker. Set by#working_on
.resque:worker:host:pid:raw,queue,list:started
=> STRING timestamp when worker booted. Static.resque:stat:failed:host:pid:raw,queue,list
=> STRING count of failed jobsresque:stat:processed:host:pid:raw,queue,list
=> STRING count of successful? jobs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <FastLED.h> | |
//#define LED_PIN 5 | |
#define DATA_PIN 9 | |
#define CLOCK_PIN 8 | |
#define NUM_LEDS 300 | |
#define BRIGHTNESS 64 | |
#define LED_TYPE APA102 | |
#define COLOR_ORDER BGR | |
CRGB leds[NUM_LEDS]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'benchmark' | |
def measure(gc: false, times: 1000, &block) | |
GC.start | |
GC.disable if gc | |
gc_key = if RUBY_VERSION > 2.2 | |
:total_allocated_objects | |
else | |
:total_allocated_object |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveSupport::Callbacks::Callback | |
class ActiveSupport::Callbacks::Callback | |
def start(key=nil, object=nil) | |
return if key && !object.send("_one_time_conditions_valid_#{@callback_id}?") | |
# options[0] is the compiled form of supplied conditions | |
# options[1] is the "end" for the conditional | |
# | |
case @kind | |
when :before |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN GEEK CODE BLOCK----- | |
Version: 3.1 | |
GCS/S/M d--(!) s:>:+++ a--- C++++>$ UBL++++ P+>++ L++++ E--- W++ N+ o? | |
K++ w@ !O M !V PS+++ PE@ Y(+) PGP(+)>+++ t+@ 5 X++ R>+ tv++>! b DI+ D++ | |
G+ e>++ h- r*>+ y?>$ | |
------END GEEK CODE BLOCK------ |
I hereby claim:
- I am gabetax on github.
- I am gabetax (https://keybase.io/gabetax) on keybase.
- I have a public key whose fingerprint is 1EFD 47AF EC3D 547B A20D 9E55 BF32 3A32 8D07 3EFA
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// data from https://www.reddit.com/r/MapPorn/comments/eq52ce/every_states_least_favorite_state_according_to_my/ | |
digraph G { | |
"Alabama" -> "Florida" | |
"Alaska" -> "Texas" | |
"Arizona" -> "California" | |
"Arkansas" -> "Alabama" | |
"California" -> "Texas" | |
"Colorado" -> "California" | |
"Connecticut" -> "New Jersey" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" lowers | |
noremap n j | |
noremap e k | |
noremap i l | |
noremap j e | |
noremap l u | |
noremap u i | |
noremap k n |
OlderNewer