Skip to content

Instantly share code, notes, and snippets.

Avatar
🧼
Clean Data

Ralph Andrade ra1fee

🧼
Clean Data
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am ra1fee on github.
  • I am ra1fee (https://keybase.io/ra1fee) on keybase.
  • I have a public key ASCdTLfUPa4IieD7s05GER0yfbZXRD-GI8-yZJzQmANYbwo To claim this, I am signing this object:
{
  "body": {
    "key": {
@ra1fee
ra1fee / user_input_hw.rb
Created Aug 25, 2019
Working with strings and methods in Ruby 💎
View user_input_hw.rb
puts "What is your first name?"
f_name = gets.chomp
puts "What is your last name?"
l_name = gets.chomp
full_name = "#{f_name} #{l_name}"
puts "Your full name must be #{f_name} #{l_name}"
puts "Your name in reverse is #{full_name.reverse}"
puts "You have #{full_name.length} characters in your full name"
View es6-spread-immutable-cheatsheet.md

update object

var state = {
    id: 1,
    points: 100,
    name: "Goran"
};

var newState = {
@ra1fee
ra1fee / removingOldGitHist.txt
Last active Mar 7, 2018
Removing an older git connection
View removingOldGitHist.txt
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git
You can’t perform that action at this time.