Skip to content

Instantly share code, notes, and snippets.

Zac Clay mebezac

Block or report user

Report or block mebezac

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View init.coffee
# 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 ->
View keybase.md

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 Dec 11, 2016
InfluxDB Bug Report
View block.txt
--- 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
View Gemfile
gem 'foreman'
gem 'puma'
@mebezac
mebezac / application.html.erb
Created Feb 11, 2014
Rails Ajax Flash Messages
View application.html.erb
<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 Jan 14, 2014
Please help me understand variable scope in Ruby
View scope.rb
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 Jan 14, 2014
Card Value not using global variable, doesn't work. Card Value, using global does work.
View card_value_with_global.rb
#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
You can’t perform that action at this time.