Skip to content

Instantly share code, notes, and snippets.

@bvancil
bvancil / force_naming.html
Created September 27, 2012 02:20
Force naming template
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
$("#button").click(function() {
$("#output").append("<p><b>F⃑</b><sup>"+$('[name=type]').val()[0]+"</sup><sub>"+$('[name=dealer]').val()+" on "+$('[name=feeler]').val()+"</sub>≔the "+$('[name=cnc]').val()+" "+$('[name=type]').val()+" force of the "+$('[name=dealer]').val()+" on the "+$('[name=feeler]').val()+"</p>");
});
@bvancil
bvancil / _.md
Created June 14, 2013 19:21
Electric flux
@bvancil
bvancil / _.md
Created June 14, 2013 19:22
Electric flux
@bvancil
bvancil / _.md
Created June 15, 2013 19:00
Electric flux
@bvancil
bvancil / madlib.cpp
Last active December 30, 2015 20:39
A Madlib invented by John C. to teach 8th graders about programming.
#include <iostream>
#include <string>
using namespace std;
int main()
{
// This is a madlib. Enter the following parts of speech below.
string adj1 = ""; // Adjective
string noun1 = ""; // Noun
@bvancil
bvancil / n2mod13.cpp
Last active August 29, 2015 14:02
Square numbers modulo thirteen
// Copy and paste into http://www.compileonline.com/compile_cpp11_online.php to run.
#include <iostream>
using namespace std;
int main()
{
int n2Mod13;
for (int n=0; n<100; n++) {
n2Mod13 = (n*n) % 13;
/*
Multiplication Table
*/
#include <iostream>
#include <iomanip> // for setw
#include <cmath>
using namespace std;
@bvancil
bvancil / studentPicker.html
Last active August 29, 2015 14:20
Student Picker
<!DOCTYPE html>
<html ng-app="studentPicker">
<head>
<meta charset="utf-8" />
<title>Student Picker</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script type="text/javascript">
angular.module('studentPicker', [])
.controller('StudentPickerController', function() {
@bvancil
bvancil / markovChainFun.html
Last active August 29, 2015 14:20
Markov Chain Fun
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Markov Chain Fun</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style type="text/css">
@bvancil
bvancil / ProductGrabber.js
Created May 28, 2015 13:01
Product Grabber Bookmarklet for E-Commerce Website ArborSci.com
javascript: (function(e, a, g, h, f, c, b, d) {
if (!(f = e.jQuery) || g > f.fn.jquery || h(f)) {
c = a.createElement("script");
c.type = "text/javascript";
c.src = "http://ajax.googleapis.com/ajax/libs/jquery/" + g + "/jquery.min.js";
c.onload = c.onreadystatechange = function() {
if (!b && (!(d = this.readyState) || d == "loaded" || d == "complete")) {
h((f = e.jQuery).noConflict(1), b = 1);
f(c).remove()
}