Skip to content

Instantly share code, notes, and snippets.

public class Distance{
public double bigTriangleWidth;
public double bigTriangleLength;
public double bigTriangleAngle;
public double robbersXCoordinate;
public double robbersYCoordinate;
/*
* Constructor sets the robber's X and Y coordinates from input.
* @ param - input representing the robbers X and Y coordinates.
@Angel-Rojas
Angel-Rojas / BingoCard.cpp
Created August 20, 2015 07:51
This is my turn-in script for AICS Bakersfield College Club :) Bingo Card Generator.
/*
* This script generates a simple, but nice (sorta) Bingo Card!
*
* Author: Angel Rojas
* Created on: Aug 20, 2015
* Source file: BingoCard.cpp
*/
#include <cstdlib>
#include <iostream>
/*
*
* @author: Diego Diaz
* Course: COMP B12
* Created on: Apr 23, 2015
* Source File:
*/
#include <iostream>
#include <string>
@asterwolf
asterwolf / ArrayList.cpp
Last active August 29, 2015 14:16
COMP B12 - Lab4
/*
*
* @author: Diego Diaz
* Course: COMP B12
* Created on: Feb 23, 2015
* Source File: ArrayList.cpp
*/
#include "ArrayList.h"
#include <iostream>
@holman
holman / Guthrie IP.md
Last active August 4, 2016 03:30
Woody Guthrie, on intellectual property.

This song is Copyrighted in U.S., under Seal of Copyright # 154085, for a period of 28 years, and anybody caught singin it without our permission, will be mighty good friends of ourn, cause we don’t give a dern. Publish it. Write it. Sing it. Swing to it. Yodel it. We wrote it, that’s all we wanted to do.

  • Woody Guthrie, 1940's —
@kasparsd
kasparsd / wordpress-plugin-svn-to-git.md
Last active April 17, 2024 12:35
Using Git with Subversion Mirroring for WordPress Plugin Development
@nathanhammond
nathanhammond / Emscripten OS X.md
Created March 4, 2012 21:48
How to get Emscripten running on OS X.

Running emscripten on OS X

There are a number of additional dependencies required for getting things installed on OS X. Starting with a blank slate OS X machine, this is the process it takes:

# Install Xcode Command Line Tools

# Install Homebrew
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
@artlung
artlung / flash-block-detector.js
Created December 1, 2011 22:17
Flash Block Detector
/*
Flash Blocker Detector
v0.1 of 2010-03-12
This script detects whether popular Flash blocking extensions are installed
and active on the current page. It is highly sensitive to the inner workings
of the extensions themselves, and it can only detect the current version
(at time of writing) of the following extensions:
* FlashBlock for Chromium / Google Chrome (#1)
@pathawks
pathawks / OpenGraph for Blogger.md
Last active October 28, 2023 23:41
OpenGraph for Blogger

Adding Open Graph metadata to Blogger is easy. Simply copy the code below and paste it into your template after the <header> tag.

A couple notes:

  • og:locale Should probably actually reflect the blog's locale instead of just being a hardcoded string. Unfortunately, Blogger only gives us en-us with a hyphen, instead of an underscore, so that won't work.
  • If you're using your blog as a personal profile, you may consider changing the second og:type from website to profile and adding your personal information
  • og:image Is only supplied if Blogger finds an image in the current post. However, not supplying og:image is invalid. You could provide an alternate image of your blog logo, or a Gravatar.
  • If you do something cool with this, I'd love to hear about it. pathawks@shortmail.com
@KenMacD
KenMacD / cmd.md
Created October 7, 2011 02:41
GPG Offline Master Key