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
function test() | |
{ | |
var rows = document.querySelectorAll('#year_2014 .pam._5shk'); | |
for (var k = 0; k < rows.length; k++) { | |
var row = rows[k]; | |
var editButton = row.querySelector('._42ft._42fu._4-s1._2agf._p._42gx'); | |
editButton.click(); | |
var possibleDeleteLinks = document.querySelectorAll('a[ajaxify]'); | |
for (var i = 0; i < possibleDeleteLinks.length; i++) { |
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
git init | |
echo 'a' > a.txt | git add a.txt | git commit -m 'A' | |
echo 'b' > b.txt | git add b.txt | git commit -m 'B' | |
echo 'c' > c.txt | git add c.txt | git commit -m 'C' | |
git branch feature | |
git checkout master | |
echo 'd' > d.txt | git add d.txt | git commit -m 'D' | |
echo 'e' > e.txt | git add e.txt | git commit -m 'E' | |
git checkout feature | |
echo 'f' > f.txt | git add f.txt | git commit -m 'F' |
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
function readEntriesAsync(reader) { | |
return new Promise((resolve, reject) => { | |
reader.readEntries(entries => { | |
resolve(entries); | |
}, error => reject(error)); | |
}) | |
} | |
async function enumerateDirectoryWithManyFiles(directoryEntry) { | |
let reader = directoryEntry.createReader(); |
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
using System; | |
public class Program | |
{ | |
public static void Main() | |
{ | |
var funcs = new Func<int, string>[4] | |
{ | |
n => n.ToString(), | |
n => "Fizz", |