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
| using System; | |
| using System.Xml; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Linq.Expressions; | |
| namespace test1 | |
| { | |
| public static class XMLExtensions | |
| { |
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
| #!/usr/bin/perl | |
| @d = split(/\;/,`cat mailinglist.txt`); | |
| print "Email\tFirst\tLast\n"; | |
| foreach(@d) { | |
| chomp; | |
| $s = $_; | |
| $s =~ s/^\s+|\s+$//g; | |
| if ($s=~/(.*?)\s*\((.*?)\)/igsm) { | |
| $e = $2; |
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
| var si = setInterval(function() {WMSX.room.machine.systemPause(false);WMSX.room.machine.videoClockPulse(); console.log(WMSX.room.machine.cpu.toString());WMSX.room.machine.systemPause(true);}, 200); |
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
| <?php | |
| use Behat\Behat\Context\ClosuredContextInterface; | |
| use Behat\Behat\Context\TranslatedContextInterface; | |
| use Behat\Behat\Context\Context; | |
| use Behat\Exception\PendingException; | |
| use Behat\Gherkin\Node\PyStringNode; | |
| use Behat\Gherkin\Node\TableNode; | |
| use Illuminate\Routing\UrlGenerator; | |
| use Behat\MinkExtension\Context\MinkContext; |
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
| import ast | |
| from cStringIO import StringIO | |
| import sys | |
| INFSTR = '1e308' | |
| def interleave(inter, f, seq): | |
| seq = iter(seq) | |
| try: | |
| f(next(seq)) |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>Prefetch video</title> | |
| </head> | |
| <body> | |
| <h1>Prefetch video</h1> | |
| <p>Prefetch a video and know exactly how much is loaded using XHR.</p> | |
| <video controls style="border:1px solid grey;"></video> |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>Prefetch video</title> | |
| </head> | |
| <body> | |
| <h1>Prefetch video</h1> | |
| <p>Prefetch a video and know exactly how much is loaded using XHR.</p> | |
| <video controls style="border:1px solid grey;"></video> |
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
| cat x.asc |perl -e '@x=split(/\s/, <>); foreach(@x){print "$_\n";}' > x1.asc |
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
| curl --data '{"email":"[email protected]","password":"123456"}' http://iys.pixelly.co.uk/api/users/login/ --happlication/json"|perl -e '$l = <>; chomp($l); $uid=-1; foreach($l=~/\"UserId\"\: (\d+)/isgm) {chomp($_); if ($uid>0 and $_!=$uid){print "$_ is not $uid, AAARGH\n"; exit;}; $uid=$_; }' |
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
| import json | |
| import urllib2 | |
| city="bristol" | |
| country="united kingdom" | |
| citry = city.replace(' ', '+') | |
| country = country.replace(' ', '+') | |
| response = urllib2.urlopen("http://nominatim.openstreetmap.org/search?q="+city+"+"+country+"&format=json") |