Skip to content

Instantly share code, notes, and snippets.

Paul pebreo

Block or report user

Report or block pebreo

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
pebreo /
Last active May 31, 2017
Math Patterns

Math Links


Math is like riding a bicycle. The best way to learn is to get on the bicycle and start peddling. You may fall but ultimately each fall means you are getting better and better.

Word Problems

pebreo /
Last active Jul 28, 2016
Javascript Snippets

Using reduce without lodash

a = [1,2,3];
var y = a.reduce(function(sum, n){
	return sum + n;
}, 0);



Goal: Surround your opponent's Bee completely (either color).

Setup: Each player should have:
* 1 Bee
* 3 Ants
pebreo /
Last active Jan 24, 2016
Arduino motor driver control
# screen /dev/tty.usbmodem*

# Servo Example 
import pyb
s1 = pyb.Servo(1) # pin X1
pebreo /
Created Dec 8, 2015
Excel shortcuts


Fill handle - double click to autofill the formula values for blank rows of a tables
F3 - paste list
F4 - cycle through cell reference type (absolute, relative, mixed)
CTRL-T - create table
CTRL-A - open function dialog
CTRL-Z- undo 

Writing patterns

Sentence openers/Dressing up sentences

1. Subject opener. 

The dog chased the cat.t
pebreo /
Last active Aug 29, 2015
DjangoGirls Chicago Notes

DjangoGirls Tutorial Notes

Below are some notes taken from the DjangoGirls Chicago workshop.

Linux/MacOS-specific Commands

Command(Apple)+Space and search for Terminal

cd mydir  # change directory
pebreo /
Last active Aug 29, 2015
Bootstrap3 + HTML


  • div and spans are grouping tags

  • class tags are mostly used for assigning styling to a div

  • class assigniments to an element are additive e.g. `class = 'class1 class2'``

  • the class definition in CSS file/block that's more bottom takes precedence over the one on top, e.g. :

.class2 {
  color: red;
View gulpfile.js
//Based on gulpfile.js from Google Web Starter Kit.
'use strict';
// Include Gulp & Tools We'll Use
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var del = require('del');
var runSequence = require('run-sequence');
var browserSync = require('browser-sync');
pebreo / payform.html
Created Apr 3, 2015
View payform.html
<form id="checkout" method="post" action="{% url 'recurpayresult' %}">
{% csrf_token %}
<input type="text" name="first_name">
<input type="text" name="last_name">
<div id="dropin"></div>
<input type="submit" value="Pay $25"> <!-- braintree will use this $25 payment -->
<script src=""></script>
You can’t perform that action at this time.