I hereby claim:
- I am ksaynice on github.
- I am ksaynice (https://keybase.io/ksaynice) on keybase.
- I have a public key ASCq2bXgwye8KMJY2-7iSG5N7oY1upMKhQSnL-dZdEijfQo
To claim this, I am signing this object:
const axios = { | |
get(url, { headers = {} }) { | |
return new Promise((resolve, reject) => { | |
const xhr = window.XMLHttpRequest | |
? new XMLHttpRequest() | |
: new ActiveXObject("Microsoft.XMLHTTP"); | |
xhr.open("get", url); | |
xhr.withCredentials = true; | |
// Object.entries(headers).forEach(([key,value]) => xhr.setRequestHeader(key, value)); |
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Comment: Filecoin phase2 signing public-key | |
mQINBF8DOjoBEAD09m9+SZz7JpGOH7X8cgLKSZ+RIldt1rP9towfvmgvpoKFfiVO | |
Qw2q4Co3L8P+QEasHHBYRiYe7HWVShH0Bpaz3zm6MXCsKS0u5hhmDqI/KX15sn+u | |
S4ARkIv1pXMk4pqo/51NDqknAYEOLf06V7atL0DmwfAEVtEI1V55Iashp6Wwpaob | |
XdxKARG9ZiwdZdqaZP0rMxYV5Id4BZNmtLB1kTJCWxg7ZGo5dI0GLYnlRxVCt10I | |
45cIlqOzX9VDMAYbcV0ClWUNjQm+YstVSfVbNBA59T6MLl/UL8Ipo+QR7zViblaF | |
QP4ixW/rXhWt0TFNyR9NXyJGuQHUewtBKOzdUm3hkjmIrQEB25XLCKeXmwVIPwiT | |
nZ13rMoGnsrbAlpDpexJXeqqVIz1hq2kCKboloIcu3nB2xMbgmzS6uzemiMw2US6 |
I hereby claim:
To claim this, I am signing this object:
import random | |
import datetime | |
import sys | |
def calc_bomb(i): | |
subtract = 52 if i >= CNSTNTNPL_FORK_BLKNUM else 32 | |
period = i // 100000 | |
if (period > 0): | |
# Subtract 2, this is the original formula |
# Date, blocknum, difficulty as of 2019-01-18 | |
# Script by vbuterin, slightly modified by lrettig | |
import random | |
import datetime | |
import sys | |
def calc_bomb(i): | |
period = i // 100000 | |
if (period > 0): | |
# Subtract 2, this is the original formula |
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
require "rubygems" | |
require "tmpdir" | |
require "bundler/setup" | |
require "jekyll" | |
# Change your GitHub reponame | |
GITHUB_REPONAME = "ksaynice/some_repo_name" |
class PumaHelper | |
def self.refresh_connection_pool(base_klass, config_key) | |
base_klass = base_klass.constantize | |
config = Rails.application.config.database_configuration[config_key] | |
base_klass.connection_pool.disconnect! rescue ActiveRecord::ConnectionNotEstablished | |
base_klass.connection.disconnect! rescue ActiveRecord::ConnectionNotEstablished | |
base_klass.establish_connection config | |
true | |
rescue |
class ProcessImage | |
class ResizeCover < ProcessImage::Base | |
include Interactor | |
include MomCatalogModels::Fileable | |
GRID_W = 960 | |
GRID_H = 1200 | |
def call | |
magic_resize_cover |
# Function to print strftime results | |
def print_strftime_formats(a,cur_date) | |
a.each do |format| | |
b = "%#{format}" | |
output = cur_date.strftime(b) | |
puts "t.strftime('#{b}'), => #{output}" | |
end | |
end | |
a = ('a'..'z').to_a |