Skip to content

Instantly share code, notes, and snippets.

View carlisia's full-sized avatar
:octocat:
🎉 ‼️ 🙋‍♀️ 😜 👀 🌟 🌈 ☀️ 💯

Carlisia Campos carlisia

:octocat:
🎉 ‼️ 🙋‍♀️ 😜 👀 🌟 🌈 ☀️ 💯
View GitHub Profile
@carlisia
carlisia / 0_reuse_code.js
Created November 29, 2013 19:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Trouble-Free Bundler

Every couple of weeks, I hear someone complaining about some difficulties with Bundler. Yesterday, it happened twice. But somehow I just never have those difficulties. I'm not saying Bundler is perfect; certainly in its early days it wasn't even close. But for the past two years it's been incredibly solid and trouble-free for me, and I think a large part of the reason is the way I use it. Bundler arguably does too much, and just as with Git, a big part of it is knowing what not to do, and configuring things to avoid the trouble spots.

# Original Rails controller and action
class EmployeesController < ApplicationController
def create
@employee = Employee.new(employee_params)
if @employee.save
redirect_to @employee, notice: "Employee #{@employee.name} created"
else
render :new
end
@carlisia
carlisia / LICENSE
Created October 30, 2015 18:15
William Kennedy at SD Gophers October Meetup - Transcript by @francismakes
The MIT License (MIT)
Copyright (c) 2015 Francis Batac
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: