Skip to content

Instantly share code, notes, and snippets.

Avatar

André Tarnowsky lotterfriends

View GitHub Profile
View platform-service.js
'use strict';
(function() {
angular.module('app.services').service('platformService', [
function() {
var IONIC_APP_ID = 'xxx00xxx';
this.isIonicWebView = function() {
return window.location.href.indexOf('com.ionic.viewapp') > -1 || window.location.href.indexOf(IONIC_APP_ID) > -1;
View platform-service.js
'use strict';
(function() {
angular.module('app.services').service('platformService', [
function() {
var IONIC_APP_ID = 'xxx00xxx';
this.isIonicWebView = function() {
return window.location.href.indexOf('com.ionic.viewapp') > -1 || window.location.href.indexOf(IONIC_APP_ID) > -1;
View analog-clock.html
<!DOCTYPE html>
<html>
<head>
<title></title>
<link href='https://fonts.googleapis.com/css?family=Roboto:700' rel='stylesheet' type='text/css'>
<style type="text/css">
body {
font-size: 14px;
}
@lotterfriends
lotterfriends / script.js
Last active Sep 18, 2015
default node script
View script.js
#!/usr/bin/env node
require('shelljs/global');
var when = require('when');
var pipeline = require('when/pipeline');
var colors = require('colors');
var debug = false;
function runCommand(command) {
@lotterfriends
lotterfriends / svn diff
Created Apr 16, 2015
svn diff without whitespaces
View svn diff
svn diff -x -w FILE_NAME
@lotterfriends
lotterfriends / flowplayer-ua-tes.js
Last active Aug 29, 2015
Flowplayer user agent test
View flowplayer-ua-tes.js
// run with rhino, io.js or node
function parseIpadVersion(UA) {
var e = /Version\/(\d\.\d)/.exec(UA);
if (e && e.length > 1) {
return parseFloat(e[1], 10);
}
return 0;
}
View do sth with my svn mods
svn stat | grep -r "^M" | sed -r 's/^M\s*//g' | while read line; do echo $line; done