Skip to content

Instantly share code, notes, and snippets.

@efuquen
efuquen / gist:11229985
Last active August 29, 2015 14:00
Scoverage 0.98.4 error with Scala 2.11.0
> last scoverage-test:executeTests
java.io.InvalidClassException: scoverage.Coverage; local class incompatible: stream classdesc serialVersionUID = -7159697436876606548, local class serialVersionUID = -8676941113756807635
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:617)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1622)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at scoverage.IOUtils$.deserialize(IOUtils.scala:53)
at scoverage.IOUtils$.deserialize(IOUtils.scala:50)
@efuquen
efuquen / gist:85369807e150061e1118
Created June 25, 2014 05:31
Cargo Ubuntu 14.04 apt-get failure
efuquen@efuquen-MacBookPro:~/Code/test/rust$ sudo apt-get install cargo
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
var canvas = null;
var ctx = null;
var moves = [];
var sprite = {
x: 0,
y: 0,
width: 100,
height: 100,
speed: 1,
color: '#c00',
<html>
<head>
<title>Space Invaders</title>
<script src="http://dv00f9dtk4nbg.cloudfront.net/mihs/2014/public/js/engine.js"></script>
</head>
<body>
<canvas id="canvas"></canvas>
<script>
</script>
</body>
@efuquen
efuquen / mihs-scripted-12-10-2014
Last active August 29, 2015 14:11
MIHS ScriptEd - December 10th 2014
Do Now
- open nitrous
- create 'space-invader' folder
- in this folder create 'index.html'
- copy the html on screen' (https://gist.github.com/efuquen/85284d6d64d3692b1734)
Lecture
- Go over what an algorithm is.
- Explain javascript (*real programming*)
- Discuss difference between js & css/html
@efuquen
efuquen / mihs-functions.md
Last active August 29, 2015 14:13
MIHS Functions
@efuquen
efuquen / mihs-scripted-exit-2_10_2015.md
Last active August 29, 2015 14:15
MIHS ScriptEd Do Now for 2/10/2015

#MIHS ScriptEd Exit Ticket - 2/10/2015

Get a sheet of paper, write your name, and then answer the following questions:

  1. For the string "We're all alike." What is the index of the first space, the index of the second space, and the index of the period? What is the length of the string?

  2. Write what will be printed to the console after the following code:

var message = "We can't stop at all"
message = message.replace("at", "us");
Do exit ticket from last class as a warm up quiz:
https://gist.github.com/efuquen/88e8ced65ddde45e1644
Finish project from last class:
http://codepen.io/efuquen/pen/azEOOO?editors=001
I have a post project activity which I will demo here:

Requirements

At UPS, we want a weather site where the user enters a zip code and gets the current weather in that area. This is going to be displayed on monitors in our locations throughout the US during business hours so it's important that the information updates automatically (without needing to refresh the page) as the weather and temperature change. Also, we want it to be beautiful and eye catching, and for the background to be related to the current weather. We also want the current time, date, and city (based on zip code) displayed.

Resources

@efuquen
efuquen / scripted-music-3-17-2015.md
Last active August 29, 2015 14:17
ScriptEd Music Assignment 3-17-2015

Fork This: http://codepen.io/efuquen/pen/RNqxEV

##Part 1

  1. Play a D note for 1 beat, a F note for 1 beat, and a A note for 2 beats.
  2. Use a while loop to play the notes from the exercise 1 three times. Like so: D, F, A, D, F, A, D, F, A
  3. Use a while loop to play the same note 3 times for 1 beat.

##Part 2