Skip to content

Instantly share code, notes, and snippets.

View ambethia's full-sized avatar
🐼
PANDAS!

Jason L Perry ambethia

🐼
PANDAS!
View GitHub Profile
@ambethia
ambethia / quark.md
Last active December 31, 2015 22:09
apt-get install git build-essential automake  libcurl4-openssl-dev libdb++-dev  libminiupnpc-dev libboost-all-dev autotools-dev

git clone https://github.com/uncle-bob/quarkcoin-cpuminer.git
cd quarkcoin-cpuminer
./autogen.sh
./configure
make

./minerd -a quark -o stratum+tcp://mine1.coinmine.pl:6010 -u <your_username>.<your_worker> -p <your_password_here>
1GpahPo3WjdNWRh8vGaqyZTtZt8kGhv5SR
@ambethia
ambethia / abstract_model.rb
Created November 13, 2013 20:16
Money in Active Record
module Grays
DEFAULT_RECENT_DELTA = 5.days
# Common behaviors for models in our app.
module AbstractModel
extend ActiveSupport::Concern
included do
include Kaminari::WillStillPaginate
@ambethia
ambethia / high.txt
Last active August 6, 2018 04:11
TSM Battle Pet Group
p:836:25:2,p:1226:25:2,p:204:25:2,p:251:25:2,p:235:25:2,p:333:25:2,p:153:25:2,p:1198:25:2,p:195:25:2,p:211:25:2,p:1196:25:2,p:1040:25:2,p:141:25:2,p:118:25:2,p:1197:25:2,p:194:25:2,p:262:25:2,p:144:25:2,p:158:25:2,p:47:25:2,p:261:25:2,p:95:25:2,p:1146:25:2,p:125:25:2,p:1321:25:2,p:292:25:2,p:164:25:2,p:1276:25:2,p:319:25:2,p:87:25:2,p:132:25:2,p:86:25:2,p:206:25:2,p:85:25:2,p:1061:25:2,p:293:25:2,p:1154:25:2,p:1153:25:2,p:1233:25:2,p:306:25:2,p:142:25:2,p:1177:25:2,p:89:25:2,p:1335:25:2,p:229:25:2,p:40:25:2,p:1155:25:2,p:162:25:2,p:167:25:2,p:1150:25:2,p:55:25:2,p:1320:25:2,p:175:25:2,p:1329:25:2,p:1348:25:2,p:157:25:2,p:311:25:2,p:1344:25:2,p:159:25:2,p:136:25:2,p:1183:25:2,p:1243:25:2,p:1228:25:2,p:59:25:2,p:127:25:2,p:630:25:2,p:58:25:2,p:652:25:2,p:1200:25:2,p:1063:25:2,p:241:25:2,p:848:25:2,p:1337:25:2,p:289:25:2,p:201:25:2,p:57:25:2,p:78:25:2,p:44:25:2,p:51:25:2,p:77:25:2,p:114:25:2,p:1346:25:2,p:190:25:2,p:52:25:2,p:267:25:2,p:75:25:2,p:792:25:2,p:239:25:2,p:200:25:2,p:834:25:2,p:847:25:2,p:1151:25:2,p
irb(main):007:0> data_source.email_notices.undelivered.to_sql
=> "SELECT \"email_notices\".* FROM \"email_notices\" WHERE \"email_notices\".\"delivered_at\" IS NULL"
irb(main):008:0> data_source.email_notices.to_sql
=> "SELECT \"email_notices\".* FROM \"email_notices\" WHERE \"email_notices\".\"data_source_id\" = $1"
43533 Glyph of Anti-Magic Shell
43534 Glyph of Unholy Frenzy
43535 Glyph of the Geist
43536 Glyph of Icebound Fortitude
43537 Glyph of Chains of Ice
43541 Glyph of Death Grip
43542 Glyph of Death and Decay
43539 Glyph of Death's Embrace
43543 Glyph of Shifting Presences
43544 Glyph of Horn of Winter
>> o = Jedi::DeepObject.new({ "foo" => { "bar" => 42 }})
=> #<Jedi::DeepObject foo=#<Jedi::DeepObject bar=42>>
>> o.foo.bar
=> 42
>> o.foo
=> #<Jedi::DeepObject bar=42>
>> o.foo.wat
=>
>> o.nope.nothing.is.here
=>
@ambethia
ambethia / JOB.md
Last active December 20, 2015 03:19

Part-time Access Developer

Company: Gray’s College Bookstore @ USF
Job Title: Independent Contractor
Job Purpose: Maintain the Text Tools Access Database and Add New Features by making corrections to the database when error messages are reported and adding new features as requested by Supervising Manager
Job Requirements: This person must possess strong organizational skills and be able to schedule their time effectively. The time needed per week is flexible and can be adjusted week to week, but a minimum of 5 hours per week to a maximum of 30 hours per week.

This person must be able to relate to others in a positive manner. This person would need to have intermediate to advanced knowledge of Access including knowledge of the following:

  • union queries
@ambethia
ambethia / lcd.md
Last active December 19, 2015 13:09
Coder Night, for July 2013 Based on Ruby Quiz, #14

Note: Although the selected problem is from RubyQuiz, CoderNight is open to any program language.

LCD Numbers (RubyQuiz #14)

This week's quiz is to write a program that displays LCD style numbers at adjustable sizes.

The digits to be displayed will be passed as an argument to the program. Size should be controlled with the command-line option -s follow up by a positive integer. The default value for -s is 2.

For example, if your program is called with:

@ambethia
ambethia / app.rb
Created July 3, 2013 19:47
POW Converter
require 'sinatra'
require 'nokogiri'
require 'cgi'
configure do
set :public_folder, Proc.new { File.join(root, "static") }
enable :sessions
end
get '/' do