Skip to content

Instantly share code, notes, and snippets.

View brossetti1's full-sized avatar

Brian Rossetti brossetti1

View GitHub Profile
@brossetti1
brossetti1 / Named Hashmasks
Created March 8, 2021 18:04 — forked from yuradmt/Named Hashmasks
Hashmasks - named NFTs
{"id":0,"name":"Bitcoin","owner":"0xc0F030eac8b588817f8dA16b9a2CDCcc6451B25c"}
{"id":1,"name":"Trump","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"}
{"id":2,"name":"King","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"}
{"id":3,"name":"Joe","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"}
{"id":4,"name":"china","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"}
{"id":5,"name":"usa","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"}
{"id":6,"name":"love","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"}
{"id":7,"name":"covid19","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"}
{"id":8,"name":"Obama","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"}
{"id":9,"name":"buterin","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"}
@brossetti1
brossetti1 / vin_to_gif.rb
Created March 7, 2021 04:09 — forked from seyhunak/vin_to_gif.rb
Vine MP4 to GIF Converting using Ruby
# space150 vine-to-GIF
# given a vine.co uri, downloads the MP4 and creates an image sequence / GIF from it
# requires ruby, ffmpeg, and imagemagick
require 'open-uri'
require 'nokogiri'
id = ARGV[0]
# try to convert from URL to id.

Keybase proof

I hereby claim:

  • I am brossetti1 on github.
  • I am brossetti1 (https://keybase.io/brossetti1) on keybase.
  • I have a public key ASANGNqg1IjCMOv0QDBUhTvrmM1ty3w8P14XRSubi3qVgAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am brossetti1 on github.
  • I am brossetti1 (https://keybase.io/brossetti1) on keybase.
  • I have a public key ASANGNqg1IjCMOv0QDBUhTvrmM1ty3w8P14XRSubi3qVgAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am brossetti1 on github.
  • I am brossetti1 (https://keybase.io/brossetti1) on keybase.
  • I have a public key ASANGNqg1IjCMOv0QDBUhTvrmM1ty3w8P14XRSubi3qVgAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am brossetti1 on github.
  • I am brossetti1 (https://keybase.io/brossetti1) on keybase.
  • I have a public key ASANGNqg1IjCMOv0QDBUhTvrmM1ty3w8P14XRSubi3qVgAo

To claim this, I am signing this object:

Pry Cheat Sheet

Command Line

  • pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)
  • pry -r ./config/environment.rb - load your rails into a pry session

Debugger

@brossetti1
brossetti1 / gist:2dc6b5a4e8f83cb8d07610a6292a7864
Created April 7, 2019 22:06 — forked from jeromedalbert/gist:5332994
The different ways to define class methods in Ruby.
class MyClass
# All of these are equivalent
def self.myMethod
true
end
def MyClass.myMethod
true
end
https://angularfirebase.com/
https://1stwebdesigner.com/copy-and-paste-css-animation-cheat-sheets/ - copy paste css animations
@brossetti1
brossetti1 / get_gists.py
Created January 23, 2019 01:26 — forked from leoloobeek/get_gists.py
Download all gists for a specific user
# first: mkdir user && cd user && cp /path/to/get_gists.py .
# python3 get_gists.py user
import requests
import sys
from subprocess import call
user = sys.argv[1]
r = requests.get('https://api.github.com/users/{0}/gists'.format(user))