This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg class="annotation-close-button" width="100%" height="100%" viewBox="0 0 21 21"> | |
<circle cx="10" cy="10" r="8"/> | |
<path d="M 7,7 L 13,13"/> | |
<path d="M 7,13 L 13,7"/> | |
</svg> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Brian's Test Typography | |
*/ | |
::-moz-selection { background: #ffc000; } | |
::selection { background: #ffc000; } | |
/************************/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Brian's Test Typography | |
*/ | |
::-moz-selection { background: #ffc000; } | |
::selection { background: #ffc000; } | |
/************************/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(init); | |
var lastHex = 0xffffff; | |
var over60 = 256 / 60; | |
var over24 = 256 / 24; | |
var isAM = true; | |
function fontResizerInit() { | |
var originalFontSize = $('#timeval').css('font-size'); | |
$(".resetFont").click(function () { | |
$('#timeval,#hexval,#am,#pm,#toggletime,#togglehex').css('font-size', originalFontSize); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.images figure { | |
position: relative; | |
} | |
.images figure:before { | |
content: ""; | |
position: absolute; | |
top: -15px; | |
right: 80px; | |
width: 130px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Melody | |
* (cleft) 2005 D. Cuartielles for K3 | |
* | |
* This example uses a piezo speaker to play melodies. It sends | |
* a square wave of the appropriate frequency to the piezo, generating | |
* the corresponding tone. | |
* | |
* The calculation of the tones is made following the mathematical | |
* operation: | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* TASK 1 - Create a basic calculator | |
* | |
* Create a function that takes 3 arguments: operator, operand1, operand2 | |
* operator can be "add" "subtract" "multiply" or "divide" | |
* return the result of the operation on the operands | |
* return null if the operator argument is not one of the 4 | |
* no other errors or exceptions need to be handled | |
* use a switch statement to choose the right operator | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); | |
DocumentBuilder db = dbf.newDocumentBuilder(); | |
Document doc = db.parse(new URL(url).openStream()); | |
Array tweet1 = getTweet(u1).split(); // ["word", "word", "word"] | |
Array tweet2 = getTweet(u2).split(); // ["word", "word", "word"] | |
StringBuilder mashedTweet = new StringBuilder(); | |
mashedTweet.append(tweet1[0]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// t is a timer that calls redraw() every 1 second indefinitely | |
t = new Timer(1000,0); | |
t.addEventListener(TimerEvent.TIMER, redraw); | |
t.start(); |