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
[ | |
{ | |
"applet": [ | |
160, | |
0, | |
0, | |
1, | |
81, | |
1 | |
], |
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 openSession = function(readers) { | |
var seReader = readers.filter(function(reader) { | |
return reader.type === 'uicc'; | |
})[0]; | |
if (!seReader) { | |
return Promise.reject('No suitable SE found'); | |
} | |
return seReader.openSession(); |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# To use this script and prepare your build environment, run the following | |
# command in the same directory as the Vagrantfile. | |
# B2G_PATH={path to your B2G directory} vagrant up | |
# NFS file system is case insensitive. This will make B2G build to fail. | |
# To avoid this: | |
# (host-mac): hdiutil create -volname 'firefoxos' -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 40g ~/firefoxos.sparseimage |
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
{%- block doctype -%} | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
{% endblock %} | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
{% block head %} | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
{% if metatags %} | |
{{ metatags }} |
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 array = ['a', 'b', 'c']; | |
var obj = { | |
toString: function() { | |
return "1"; | |
} | |
}; | |
// array[obj] === '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
<!doctype html> | |
<html> | |
<body> | |
<button id="indexBtn">Open popup</button> | |
<script> | |
document.querySelector('button').addEventListener('click', openPopup); | |
function openPopup () { | |
window.open('popup.html', 'name', 'width=750, height=300'); |
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 | |
MONGO=../mongo/bin | |
NUMBER_OF_NODES=$1 | |
REPLICA_NAME=rs | |
PORT=27017 | |
if [[ -z "$1" ]]; | |
then | |
NUMBER_OF_NODES=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
REM Andrew Erlichson - Original author | |
REM Jai Hirsch - Translated original .sh file to .bat | |
REM 10gen | |
REM script to start a sharded environment on localhost | |
echo "del data files for a clean start" | |
del /Q c:\data\config | |
del /Q c:\data\shard0 |
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
web: node app.js |
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
package pl.kamituel.gpx; | |
import java.io.IOException; | |
import java.io.InputStream; | |
public class GpxParser { | |
private InputStream mIs = null; | |
private StringBuilder mStringBuilder = new StringBuilder(); | |
public GpxParser (InputStream is) { |