Skip to content

Instantly share code, notes, and snippets.

View mebezac's full-sized avatar

Zac Clay mebezac

View GitHub Profile
# 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 ->

Keybase proof

I hereby claim:

  • I am mebezac on github.
  • I am mebezac (https://keybase.io/mebezac) on keybase.
  • I have a public key whose fingerprint is 91E6 2B65 E5DF 0ED9 BFF3 3F30 F2E5 5B0A A335 695A

To claim this, I am signing this object:

@mebezac
mebezac / block.txt
Created December 11, 2016 02:01
InfluxDB Bug Report
--- contention:
cycles/second=2394485246
270349477083874 10616 @ 0x407555 0x5f399b 0x5f4643 0x4607f1
# 0x407554 runtime.chanrecv2+0x34 /usr/local/go/src/runtime/chan.go:383
# 0x5f399a github.com/influxdata/influxdb/services/subscriber.chanWriter.Run+0x5a /root/go/src/github.com/influxdata/influxdb/services/subscriber/service.go:357
# 0x5f4642 github.com/influxdata/influxdb/services/subscriber.(*Service).updateSubs.func1+0x62 /root/go/src/github.com/influxdata/influxdb/services/subscriber/service.go:301
139060315269313 1937 @ 0x43de8c 0x60e94d 0x4607f1
# 0x43de8b runtime.selectgo+0x1b /usr/local/go/src/runtime/select.go:238
# 0x60e94c github.com/influxdata/influxdb/tsdb.(*Shard).monitor+0x6ac /root/go/src/github.com/influxdata/influxdb/tsdb/shard.go:840
@mebezac
mebezac / Gemfile
Created December 15, 2014 20:18 — forked from flomotlik/Gemfile
gem 'foreman'
gem 'puma'
@mebezac
mebezac / application.html.erb
Created February 11, 2014 21:06
Rails Ajax Flash Messages
<div id="main" role="main">
<div class="container">
<div class="row">
<div class="span12" id="top-div"> <!--! added "top-div" id to help with ajax -->
<%= render 'layouts/messages' %>
<%= yield %>
</div>
</div>
<footer>
</footer>
@mebezac
mebezac / scope.rb
Created January 14, 2014 20:06
Please help me understand variable scope in Ruby
puts "Please enter num1"
num1 = 13
puts "At the beginning I am: #{num1}" #num1 = 13
def change(num)
num1 = num
puts "Inside of the change method I am: #{num1} " #num1 = 47 because num1 is local inside change
end
change 47
@mebezac
mebezac / card_value_with_global.rb
Created January 14, 2014 19:22
Card Value not using global variable, doesn't work. Card Value, using global does work.
#Blackjack
$card_values_hash = {"Ace" => 1, "Two" => 2, "Three" => 3, "Four" => 4, "Five" => 5, "Six" => 6, "Seven" => 7, "Eight" => 8, "Nine" => 9, "Ten" => 10, "Jack" => 10, "Queen" => 10, "King" => 10}
suits = ["Clubs", "Spades", "Diamonds", "Hearts"]
cards = ["Ace", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Jack", "Queen", "King"]
deck = []
player_hand =[]
deaker_hand =[]
#Create Deck