Skip to content

Instantly share code, notes, and snippets.

View thefonso's full-sized avatar

thefonso thefonso

View GitHub Profile
@thefonso
thefonso / ebooks_on_ibooks_ipad.md
Last active June 20, 2016 07:37
get_ebook_on_ibooks

##Email

The easiest way to put books on your Kindle is to do it via email.

To get your Kindle's email address, go to www.amazon.com/myk using your PC's Web browser. Tap on "Your Devices," then choose the relevant Kindle from the gallery below. Next to "Email," you'll find the Kindle's email address.

Now click "Settings" and scroll all the way down to the "approved personal document e-mail list." Click "add a new approved e-mail address," and add the email address you intend to send your books from.

Remember, your Kindle needs to be attached to a Wi-Fi or 3G network for this to work. It doesn't have to be your home network, of course; you can go to a coffee shop or a public library, for instance.

@thefonso
thefonso / abstract_decorators.js
Last active June 23, 2016 19:29
decorator patters exploring
// Instructions: Copy past this into chrome console. - BEGIN
// Utilities required for this example
// ========================================
// extend()
// Extend an object a with the properties
// in object b
function extend( a, b ){
for( var key in b )
@thefonso
thefonso / irc.md
Created May 3, 2016 00:25
irc cheat sheet

#IRC Reference

Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.

##The Basics

  • /join #channel
    • Joins the specified channel.
  • /part #channel
    • Leaves the specified channel.
@thefonso
thefonso / index.md
Last active August 29, 2015 14:17 — forked from rstacruz/index.md

Rails Models

Generating models

$ rails g model User

Associations

belongs_to

has_one

Effectively Reviewing a Pull Request
====================================
How do they work?
-----------------
- code on a branch or fork
- open pull request
- have people review code
- potentially update the code
- merge pull request
@thefonso
thefonso / index.hbs
Last active August 29, 2015 14:10 — forked from bojicas/index.hbs
<section id="todoapp">
<header id="header">
<h1>todos</h1>
<input type="text" id="new-todo" placeholder="What needs to be done?" />
</header>
<section id="main">
<ul id="todo-list">
<li class="completed">
<input type="checkbox" class="toggle">
{{outlet}}
<footer id="info">
<p>Double-click to edit a todo</p>
</footer>
@thefonso
thefonso / router.js
Last active August 29, 2015 14:10 — forked from bojicas/router.js
import Ember from 'ember';
var Router = Ember.Router.extend({
location: TodoEmberENV.locationType
});
Router.map(function() {
this.resource('todos', { path: '/' });
});
<section id="todoapp">
<header id="header">
<h1>todos</h1>
<input type="text" id="new-todo" placeholder="What needs to be done?" />
</header>
<section id="main">
<ul id="todo-list">
<li class="completed">
<input type="checkbox" class="toggle">