This file contains 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
<link rel="import" href="../paper-button/paper-button.html"> | |
<link rel="import" href="../paper-calculator/paper-calculator.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |
This file contains 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
./|,,/| | |
< o o) | |
<\ ( | | |
<\\ |\ | | |
<\\\ |(__) | |
<\\\\ | |
This file contains 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
N1C4AA | |
N1C4AB | |
N1C4AD | |
N1C4AE | |
N1C4AF | |
N1C4AH | |
N1C4AJ | |
N1C4AL | |
N1C4AN | |
N1C4AP |
This file contains 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
void Main() | |
{ | |
const int maxHits = 100*1000; | |
var list = new List<Tuple<int, TimeSpan, TimeSpan>>(); | |
for(var i = 10; i < maxHits; i *= 2) | |
{ | |
var output = Test(i); | |
list.Add(Tuple.Create(i, output.Item1, output.Item2)); | |
} |
This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<title>this</title> | |
</head> | |
<body> | |
<div><a id="broken" href="#">Incorrectly bound click</a></div> | |
<div><a id="working" href="#">Correctly bound click</a></div> | |
<div><a id="working2" href="#">Also correctly bound click</a></div> | |
<script> |
This file contains 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
require "rexml/document" | |
include REXML | |
file = File.new( "String Quartet No. 3 in G Major, K. 156.xml" ) | |
doc = Document.new file | |
notes = XPath.match( doc, "//note/pitch[step='C' and octave='5' and not(alter)]" ) | |
puts notes.length |
This file contains 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
// Normal variable: | |
var x = 7; | |
// Used like: | |
console.log(x); // => 7 | |
// Variable declared in a loop | |
for(var i = 0; i < 3; i++) { | |
// Used like: | |
console.log(i); // => 0,1,2 |
This file contains 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
void Main() | |
{ | |
const int listSize = 1000; | |
const int sampleSize = 10000; | |
var sortedList = Enumerable.Range(0,listSize).ToList(); | |
var unsortedList = new List<int>(sortedList); | |
var sortedCount = 0; | |
sortedList.Sort((l,r) => {sortedCount++; return l - r;}); |
NewerOlder