Skip to content

Instantly share code, notes, and snippets.

@pedropazello
pedropazello / haskell.md
Last active July 26, 2020 00:20
Haskell: Primeiros passos e bookmarks.
@phroa
phroa / readmore.md
Last active December 9, 2021 09:34
Using readmore.js

Reading More

Step 1

Add this block of code inside your page's <head> tag, preferably right under the <link> to your stylesheet:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://raw.githubusercontent.com/jedfoster/Readmore.js/master/readmore.js"></script>
@bettysteger
bettysteger / es6-classes-inheritance.js
Last active October 11, 2020 00:05
ES6 Classes and Inheritance example (www.es6fiddle.net)
/**
* Classes and Inheritance
* Code Example from http://www.es6fiddle.net/
*/
class Polygon {
constructor(height, width) { //class constructor
this.name = 'Polygon';
this.height = height;
this.width = width;
}
@dshaw
dshaw / nodebook.md
Last active November 17, 2022 14:50
Running Node on a Samsung 303C Chromebook

Running Node on a Samsung 303C Chromebook

Motivation

After @mikeal and @lyle purchased Chromebooks for kids activities at NodeConf 2014, I was very impressed with the device and decided to explore this as a laptop and hacking device for my kids (7 & 8). I'd love to retain the simplicity of the web-focused ChromeOS experience while letting my kids hack on NodeBots and learn how to program.

It seems like the platforms that ChromeOS runs on are quite diverse. The Samsung 303C hit the right balance of being an aesthetically pleasing looking device, having respectable build quality and the amazing $250 price point. The 303C has an ARM processor. Not all Chromebooks do. I'm writing the below step-by-step very specifically for this system.

Resources

@Killavus
Killavus / gist:22cfcf961e21edf27141
Created July 17, 2014 12:48
Simple backend class example.
class Backend
getData: ->
request = $.ajax
type: "GET"
dataType: "JSON"
url: '/foo'
request.pipe (response) ->
DomainObject.fromJSON(response)
# And then in initializer code:
@staltz
staltz / introrx.md
Last active May 15, 2025 10:37
The introduction to Reactive Programming you've been missing
@fmasanori
fmasanori / jogos.py
Last active October 30, 2022 00:00
World Cup in six lines of Python 3. Jogos da Copa do Mundo em cinco linhas de Python 3.
import requests
jogos = requests.get('http://worldcup.sfg.io/matches').json()
for jogo in jogos:
if jogo['status'] in ('completed', 'in progress'):
print (jogo['home_team']['country'], jogo['home_team']['goals'], 'x',
jogo['away_team']['country'], jogo['away_team']['goals'])
@swalkinshaw
swalkinshaw / site.yml
Last active June 15, 2018 15:37
Multiple sites on one box with bedrock-ansible
# this is group_vars/development
---
www_root: /srv/www
# Define your WordPress sites here
wordpress_sites:
- site_name: site1.dev
site_hosts:
- site1.dev
@dseese01
dseese01 / Fidelity2Factor.md
Created April 19, 2014 23:00
Fidelity Two-Factor Authentication

Fidelity Investments Two-Factor Authentication for Account Access

[Fidelity] (https://www.fidelity.com/) offers two-factor authentication, which provides a second layer of protection beyond a password for accessing an account on their website. It uses either a physical token provided by Fidelity or the Symantec VIP Access smartphone app. It appears there is no information about this service provided online and it must be enabled and managed by phone.

Note that this is different than the weaker [“Transaction Security”] (https://fps.fidelity.com/ftgw/Fps/Fidelity/SecurityDevice/Maintain/Init), which only protects certain types of transactions.

Instructions for Setting Up Fidelity Two-Factor Authentication

  1. Do one of the following:
  • Obtain a physical token by calling Fidelity Account Key Support at 800-544-7595.