npm install cordova
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 bash | |
# checks if branch has something pending | |
function parse_git_dirty() { | |
git diff --quiet --ignore-submodules HEAD 2>/dev/null; [ $? -eq 1 ] && echo "*" | |
} | |
# gets the current git branch | |
function parse_git_branch() { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\1$(parse_git_dirty)/" |
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
click: function (event) { | |
event.stopPropagation() | |
this.form = new EditFormView({ model: this.model, availableCustomers: this.availableCustomers }) | |
// the created form eliminates the class, dunno why | |
this.form.el.classList.add('form-horizontal') | |
const originalData = merge({}, this.form.data) | |
const modal = bootbox.form( | |
{ |
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/env bash | |
echo "ok" |
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
/* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for | |
* full list of contributors). Published under the 2-clause BSD license. | |
* See license.txt in the OpenLayers distribution or repository for the | |
* full text of the license. */ | |
/** | |
* @requires OpenLayers/Control.js | |
* @requires OpenLayers/StyleMap.js | |
* @requires OpenLayers/Feature/Vector.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
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Untitled Document</title> | |
</head> | |
<body bgcolor="#0093D0"> | |
<table width="100%" border="0" cellspacing="0" cellpadding="0"> | |
<tbody> |
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> | |
<html> | |
<head> | |
<title>Capture Photo</title> | |
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1"/> | |
<script type="text/javascript" charset="utf-8" src="js/phonegap.js"></script> | |
<script type="text/javascript" charset="utf-8"> | |
var pictureSource; // picture source | |
var destinationType; // sets the format of returned value |
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
body { | |
font-size: 14px; | |
} | |
/* targeting iPhones 1 through 5 and any other device which height is less than 480px */ | |
@media screen and (max-device-width: 320px, max-device-height: 480px) { | |
body: { | |
font-size: 16px; | |
} | |
} |
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
body { | |
font-size: 14px; | |
} | |
/* | |
... | |
bunch of lines with excellent css | |
... | |
*/ | |
/* targeting iPhones from 1 through 5 */ |
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 popcorn={initialize:function(){this.polyfill(),analytics.initialize({"Google Analytics":{trackingId:"UA-38440155-3",domain:"popcorntime.io",universalClient:!0}}),analytics.pageview()},polyfill:function(){for(var a=["ms","moz","webkit","o"],b=0;b<a.length&&!window.requestAnimationFrame;b++)window.requestAnimationFrame=window[a[b]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[a[b]+"CancelAnimationFrame"]||window[a[b]+"CancelRequestAnimationFrame"]},detectUA:function(a){return/Mac/.test(a)?"mac":/Win/.test(a)?"win":/Lin/.test(a)?/x86_64/.test(a)?"lin-64":"lin-32":void 0},updateDownloads:function(a){document.body.className+=" "+(this.detectUA(a)||"nope")},updateStatus:function(a,b){$.get(b,function(b){$(a).addClass(b.status.indicator)},"json")},smoothScroll:function(){$("a[data-scroll][href*=#]:not([href=#])").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var a=$(this.hash);if(a=a.length?a:$("[name="+this.hash.slice(1) |
NewerOlder