Skip to content

Instantly share code, notes, and snippets.

View adamburvill's full-sized avatar

Adam Burvill adamburvill

View GitHub Profile

FWIW: I didn't produce the content present here. I've just copy-pasted it from somewhere over the Internet, but I cannot remember exactly the original source. I was also not able to find the author's name, so I cannot give him/her the proper credit.


Effective Engineer - Notes

What's an Effective Engineer?

@adamburvill
adamburvill / links.js
Created January 9, 2017 21:36
H2 Links
@adamburvill
adamburvill / book.js
Created February 26, 2016 17:49
Basic angular controller making use of the Book service
(function () {
// @ngInject
function BookCtrl(Book){
var vm = this;
vm.error = '';
vm.books = [];
vm.getAllBooks = function() {
@adamburvill
adamburvill / service.js
Created February 26, 2016 17:47
Basic service exposing a $resource in angular
(function () {
// @ngInject
function Book($resource){
var resource = $resource('/api/books/:id', {id: '@id'}, {
update: {method: 'PUT'},
subscribe: {method: 'GET', id: '@id', url: '/api/books/:id/subscribe'},
});
return {
@adamburvill
adamburvill / main.py
Last active February 11, 2016 07:25
Ted Cruz
import sys
import requests
import time
import requests.packages.urllib3
requests.packages.urllib3.disable_warnings()
email = sys.argv[1]
amount = sys.argv[2]
url = 'https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8'
<?php
$layout = Mage::app()->getLayout();
$layout->getUpdate()
->addHandle('default')
->load();
$layout->generateXml()
->generateBlocks();
<?php
require_once "shop/app/Mage.php";
unmask(0);
Mage::app('default');
?>
define('WP_USE_THEMES', false);
require_once('/path/to/wordpress/directory/wp-load.php');
@adamburvill
adamburvill / macshortcuts.md
Last active August 29, 2015 13:59
Mac Productivity Shortcuts

Mac Shortcuts

option + left/right arrow: moves cursor by word rather than character

Alfred Shortcuts

define: define word
<!DOCTYPE html>
<html>
<head>
<!--
theme: Copycat
version: 1.9a (March 31, 2014)
from: adorablethemes.com
-->