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
Show hidden characters
{ | |
"files": | |
{ | |
// jQuery | |
"jquery.js" : "http://code.jquery.com/jquery.js", | |
"jquery.min.js" : "http://code.jquery.com/jquery.min.js", | |
// jQuery Plugins | |
"jquery.cookie.js" : "https://raw.github.com/carhartl/jquery-cookie/master/jquery.cookie.js", |
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
angular.module('angular-snap', []) | |
.directive('snap', function() { | |
var parseBoolean = function(attrValue, defaultValue) { | |
var strValue = '' + attrValue; | |
if (strValue === 'true' || | |
strValue === 'yes' || | |
strValue === '1') return true; | |
if (strValue === 'false' || |
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> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
<!--[if IEMobile 7 ]> <html class="no-js iem7"> <![endif]--> | |
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)]><!--> <html class="no-js"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Snap List</title> |
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
#!/usr/bin/env node | |
/** | |
* Firefox OS Layer Tree Utility | |
* | |
* Captures layer tree dumps from `adb logcat` and | |
* outputs them to the console without log noise. | |
* | |
* Usage: | |
* |
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
#!/bin/sh | |
adb shell "mount -o rw,remount /system" | |
adb shell "stop b2g" | |
adb shell "echo \"ro.moz.wifi.p2p_supported=1\" >> /system/build.prop" | |
adb shell "mount -o ro,remount /system" | |
adb reboot |
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
#!/bin/sh | |
adb shell "stop b2g" | |
adb shell "cd /data/b2g/mozilla/*.default/;echo 'user_pref(\"dom.apps.developer_mode\", true);' >> prefs.js;" | |
adb shell "cd /data/b2g/mozilla/*.default/;echo 'user_pref(\"network.disable.ipc.security\", true);' >> prefs.js;" | |
adb shell "start b2g" |
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
export B2G_DIR=${B2G_DIR:-$(cd $(dirname $0); pwd)} | |
# Uncomment for debugging | |
# export B2G_DEBUG=1 | |
# b2g-inbound | |
# export GECKO_PATH=${B2G_DIR}/b2g-inbound | |
# export GECKO_OBJDIR=${B2G_DIR}/objdir-b2g-inbound | |
# mozilla-central |
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
var http = require('http'); | |
var mdns = require('mdns'); | |
const HTTP_PORT = 8000; | |
var server = http.createServer(function(request, response) { | |
response.end('Hello world!'); | |
}); | |
server.listen(HTTP_PORT); |
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
// Install ESP8266 Board v2.1.0 by adding this | |
// to the "Additional Board Manager URLs" in | |
// "Preferences..." and then select it for | |
// installation via "Boards Manager..." under | |
// the "Tools" -> "Board: XXX" menu. | |
// http://arduino.esp8266.com/stable/package_esp8266com_index.json | |
#include <ESP8266WiFi.h> | |
#include <ESP8266WebServer.h> | |
#include <ESP8266mDNS.h> | |
#include <WiFiUdp.h> |
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
navigator.publishServer('HelloFlyWeb').then((srv) => { | |
(window.srv = srv).onfetch = (evt) => { | |
evt.respondWith(new Response('<h1>Hello FlyWeb!!!</h1>', { | |
headers: { 'Content-Type': 'text/html' } | |
})); | |
}; | |
}); |
OlderNewer