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
| // Platform: firefoxos | |
| // 3.3.0 | |
| /* | |
| Licensed to the Apache Software Foundation (ASF) under one | |
| or more contributor license agreements. See the NOTICE file | |
| distributed with this work for additional information | |
| regarding copyright ownership. The ASF licenses this file | |
| to you under the Apache License, Version 2.0 (the | |
| "License"); you may not use this file except in compliance | |
| with the License. You may obtain a copy of the License at |
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
| #!/bin/sh | |
| ## Script to build Cordova Sample app, as described in this blog post: | |
| # https://hacks.mozilla.org/2014/02/building-cordova-apps-for-firefox-os/ | |
| # Note, this assumes you have Cordova installed. | |
| # More info: http://cordova.apache.org/ | |
| cordova create cordovasample | |
| cd cordovasample |
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
| #!/bin/sh | |
| ## Script to build Cordova Sample app, as described in this blog post: | |
| # https://hacks.mozilla.org/2014/02/building-cordova-apps-for-firefox-os/ | |
| # Note, this assumes you have Cordova installed. | |
| # More info: http://cordova.apache.org/ | |
| rm -rf cordovasample |
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
| 130 fred@athena ~ % curl http://speedtest.newark.linode.com/100MB-newark.bin > /dev/null | |
| % Total % Received % Xferd Average Speed Time Time Time Current | |
| Dload Upload Total Spent Left Speed | |
| 85 100M 85 85.4M 0 0 2433k 0 0:00:42 0:00:35 0:00:07 2380k^C | |
| 130 fred@athena ~ % curl http://speedtest.atlanta.linode.com/100MB-atlanta.bin > /dev/null | |
| % Total % Received % Xferd Average Speed Time Time Time Current | |
| Dload Upload Total Spent Left Speed | |
| 61 100M 61 61.6M 0 0 2396k 0 0:00:42 0:00:26 0:00:16 2258k^C | |
| 130 fred@athena ~ % ping speedtest.newark.linode.com | |
| PING speedtest.newark.linode.com (50.116.57.237): 56 data bytes |
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
| https://twitter.com/kathleenbot/status/483625820645519361/photo/1 | |
| "Easily the best NYT News Alert I've ever gotten" | |
| Picture says: "Supreme Court Ruling in Contraception Case", then underneath: | |
| "The Supreme Court has ruled on whether for-profit corporations may advance claims based on religious freedom." | |
| Then highlighted: "Our reporters are reading the decision and will update this article as soon as they feel confident about its basic meaning." |
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*r(k){t=x=>(y=x%n)in s?s[y]:y;w=_=>t((s[i%n]=t(j+=f=t(i++)))+(s[j%n]=f));for(n=256,s=[i=j=0];i<n;)w(j+=k[i%k.length]);for(j=0,i=1;;)yield w()} | |
| // A raw RC4 stream. | |
| // Works in Firefox only (needs lots of ES6). | |
| // 150 chars | |
| // Usage: | |
| for (var b of r([65,65,65])) { | |
| console.log(b); | |
| } |
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
| running install_lib | |
| Traceback (most recent call last): | |
| File "<string>", line 1, in <module> | |
| File "/Users/fred/.virtualenvs/upshot/build/pyobjc-core/setup.py", line 492, in <module> | |
| zip_safe = False, |
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
| --- existing.json 2015-05-13 12:59:19.000000000 -0700 | |
| +++ genc.json 2015-05-13 12:54:02.000000000 -0700 | |
| @@ -1,12 +1,11 @@ | |
| { | |
| "ad": "Andorra", | |
| - "ae": "U.A.E.", | |
| + "ae": "United Arab Emirates", | |
| "af": "Afghanistan", | |
| "ag": "Antigua and Barbuda", | |
| "ai": "Anguilla", |
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
| --- existing.json 2015-05-13 12:59:19.000000000 -0700 | |
| +++ slim.json 2015-05-13 13:35:50.000000000 -0700 | |
| @@ -1,12 +1,11 @@ | |
| { | |
| "ad": "Andorra", | |
| - "ae": "U.A.E.", | |
| + "ae": "United Arab Emirates", | |
| "af": "Afghanistan", | |
| "ag": "Antigua and Barbuda", | |
| "ai": "Anguilla", |
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/env python | |
| import json | |
| import re | |
| from xml.etree import ElementTree as ET | |
| NS = {'genc': 'http://api.nsgreg.nga.mil/schema/genc/2.0'} | |
| ent = lambda name, ns: '{%s}%s' % (NS[ns], name) | |
| tree = ET.parse('genc.xml') |
OlderNewer