Skip to content

Instantly share code, notes, and snippets.

Alex ellcs

Block or report user

Report or block ellcs

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
ellcs / usb_hid_keys.h
Created Mar 12, 2019 — forked from MightyPork/usb_hid_keys.h
USB HID Keyboard scan codes
View usb_hid_keys.h
* USB HID Keyboard scan codes as per USB spec 1.11
* plus some additional codes
* Created by MightyPork, 2016
* Public domain
* Adapted from:
View gist:f9037da3ab22ccbf75f7bcda018decb9
# from
" new items marked [N] , corrected items marked [C]
" *best-searching*
/joe/e : cursor set to End of match
3/joe/e+1 : find 3rd joe cursor set to End of match plus 1 [C]
/joe/s-2 : cursor set to Start of match minus 2
/joe/+3 : find joe move cursor 3 lines down
/^joe.*fred.*bill/ : find joe AND fred AND Bill (Joe at start of line)
/^[A-J]/ : search for lines beginning with one or more A-J
ellcs / pg_pub_sub.rb
Created Jan 12, 2018 — forked from chsh/pg_pub_sub.rb
PostgreSQL LISTEN/NOTIFY example for ruby
View pg_pub_sub.rb
# A:
# pubsub ='channelname')
# pubsub.subscribe do |data|
# puts "data: #{data} is coming!"
# end
# B:
# pubsub ='channelname')
# pubsub.publish("hello world")
Last active Jan 23, 2019
A list of hacky commands
We couldn’t find that file to show.
ellcs / formtastic_static_field.html.erb
Last active Aug 24, 2017
static field in formtastic
View formtastic_static_field.html.erb
<% # you might want to create a casual label with %>
<% # static content or content to display. %>
<% # to do, use this: %>
<legend class="label">
Static Label

Keybase proof

I hereby claim:

  • I am ellcs on github.
  • I am ellcs ( on keybase.
  • I have a public key ASDjswl5NPE2o_H2ebQC2JS6mFA51iWGun7FvoeQwtbOZAo

To claim this, I am signing this object:

You can’t perform that action at this time.