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
function scrape() { | |
/* Uncomment one of the lines below */ | |
//var iframe = document.getElementsByTagName("iframe")[1].contentDocument; | |
var iframe = document.getElementsByTagName("iframe")[2].contentDocument; | |
var artists = iframe.getElementsByClassName("tl-cell tl-artists"); | |
var titles = iframe.getElementsByClassName("tl-cell tl-name"); | |
for(var i = 0; i < titles.length; ++i) { | |
console.log(artists[i].innerText + " -- " + titles[i].innerText); | |
} | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<manifest> | |
<!-- remotes --> | |
<remote name="github-m1cha" | |
fetch="git://github.com" | |
revision="android-5.1.1" /> | |
<!--Remove this project because it doesn't compile https://github.com/CyanogenMod/android/commit/ddd855bbe76f07dfee1d25baf2e8eea4cef492f2 --> | |
<remove-project name="platform/frameworks/testing" /> |
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
use std::collections::HashMap; | |
fn main() { | |
let mut coins = HashMap::new(); | |
coins.insert(200, 4); | |
coins.insert(100, 2); | |
coins.insert(50, 8); | |
coins.insert(20, 1); | |
coins.insert(10, 4); | |
coins.insert(5, 3); |
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
const DAYTIME: [usize; 2] = [8, 22]; | |
fn main() { | |
let mut people = 7_000_000_000isize; | |
let mut zombies = 1; | |
let mut hour = 0; | |
while people > 0 { | |
let hour_of_day = hour % 24; |