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> | |
<body> | |
<!-- ----------------------------------------------- --> | |
<!-- inline script block with commented code inside: --> | |
<!-- ----------------------------------------------- --> | |
<script id="myjscode"> | |
/* | |
(function(h,v){function q(b){if(""===m)return b; |
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> | |
<body> | |
<!-- ----------------------------------------------- --> | |
<!-- inline script block with commented code inside: --> | |
<!-- ----------------------------------------------- --> | |
<script id="myjscode"> | |
/* | |
'use strict';(function(h,v){function q(b){if(""===m)return b; |
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
# Port of the Bash version bundled with git | |
# Bodaniel Jeanes | |
function __git_ps1 | |
set -l g (git rev-parse --git-dir ^/dev/null) | |
if [ -n "$g" ] | |
set -l r "" | |
set -l b "" | |
if [ -d "$g/rebase" ] | |
if [ -f "$g/rebase/rebasing" ] |
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
// # Globbing | |
// for performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' | |
// use this if you want to recursively match all subfolders: | |
// 'test/spec/**/*.js' | |
From: https://github.com/addyosmani/polymer-grunt-example/blob/master/Gruntfile.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
function sortByKey(obj) { | |
var newObj = {}; | |
Object.keys(obj).sort().forEach(function(key) { | |
newObj[key] = obj[key]; | |
}); | |
return newObj; | |
} | |
var obj = { | |
b: 2, |
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
declare const Icons: { | |
"500px": string; | |
addressBook: string; | |
addressBookO: string; | |
addressCard: string; | |
addressCardO: string; | |
adjust: string; | |
adn: string; | |
alignCenter: string; | |
alignJustify: string; |
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
import RNGeolocation from "@react-native-community/geolocation"; | |
import { Observable } from "rxjs"; | |
export interface Coordinates { | |
/** | |
* a double representing the position's latitude in decimal degrees. | |
*/ | |
latitude: number; | |
/** |