Skip to content

Instantly share code, notes, and snippets.

John Jacob Johnsalzarulo

Block or report user

Report or block Johnsalzarulo

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
@Johnsalzarulo
Johnsalzarulo / Multiple Github Accounts One Machine.md
Last active Sep 27, 2018
Multiple Github Accounts One Computer
View Multiple Github Accounts One Machine.md

Setting Up Multiple Github Accounts / SSH Keys on one machine

Sometimes you may find yourself needing to have multiple github accounts set up able to push and pull to different repositories where different usernames have access. This guide is intended to be breadcrumbs for those who are struggling.

I really struggled on this one.

Here's the basic steps:

  • Generate a new SSH key
  • Add this key to your ssh settings
  • Copy this key into your github account
View huge.json
This file has been truncated, but you can view the full file.
View bagel.json
{"v":"5.1.18","fr":29.9700012207031,"ip":0,"op":40.0000016292334,"w":864,"h":486,"nm":"Comp 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":1,"nm":"Auto-traced V1-FX-029.mov Comp 1","cl":"mov","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[613,281,0],"ix":2},"a":{"a":0,"k":[432,243,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"f","pt":{"a":1,"k":[{"t":12,"s":[{"i":[[4.195,0.858],[-2.456,-0.893]],"o":[[-1.711,2.005],[2.128,-2.341]],"v":[[409,140],[410,149]],"c":true}],"h":1},{"t":13,"s":[{"i":[[3.299,2.442],[-3.715,0.662]],"o":[[-2.726,3.733],[2.368,-0.422]],"v":[[402,103],[403,113]],"c":true}],"h":1},{"t":14,"s":[{"i":[[2.148,-2.802],[0.28,1.178]],"o":[[3.269,1.91],[-0.28,-1.178]],"v":[[400,67],[404.063,66.332]],"c":true}],"h":1},{"t":15,"s":[{"i":[[0.621,-0.345],[-0.097,5.973]],"o":[[-6.17,3.428],[0.039,-2.383]],"v":[[370,62],[375,64]],"c":true}],"h":1},{"t":16,"s":[{"i":[[3.033,-1.47],[-2.185,-0.829]]
View poppin.json
{"v":"5.1.18","fr":29.9700012207031,"ip":0,"op":40.0000016292334,"w":864,"h":486,"nm":"Comp 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":1,"nm":"Auto-traced V1-FX-029.mov Comp 1","cl":"mov","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[613,281,0],"ix":2},"a":{"a":0,"k":[432,243,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"f","pt":{"a":1,"k":[{"t":12,"s":[{"i":[[4.195,0.858],[-2.456,-0.893]],"o":[[-1.711,2.005],[2.128,-2.341]],"v":[[409,140],[410,149]],"c":true}],"h":1},{"t":13,"s":[{"i":[[3.299,2.442],[-3.715,0.662]],"o":[[-2.726,3.733],[2.368,-0.422]],"v":[[402,103],[403,113]],"c":true}],"h":1},{"t":14,"s":[{"i":[[2.148,-2.802],[0.28,1.178]],"o":[[3.269,1.91],[-0.28,-1.178]],"v":[[400,67],[404.063,66.332]],"c":true}],"h":1},{"t":15,"s":[{"i":[[0.621,-0.345],[-0.097,5.973]],"o":[[-6.17,3.428],[0.039,-2.383]],"v":[[370,62],[375,64]],"c":true}],"h":1},{"t":16,"s":[{"i":[[3.033,-1.47],[-2.185,-0.829]]
View Palindrome.rb
#My anwer for https://www.interviewcake.com/question/ruby/permutation-palindrome
class Palindrome
def self.test_string(text)
characters = text.split(//)
odd_char = characters.select {|char| characters.count(char).odd?}.uniq
if odd_char.count == 1 or odd_char.count == 0
true
else
false
You can’t perform that action at this time.