Skip to content

Instantly share code, notes, and snippets.

View piscis's full-sized avatar
🧱
¯\_(ツ)_/¯

Alex piscis

🧱
¯\_(ツ)_/¯
View GitHub Profile
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
<?xml version="1.0"?>
<gpx
version="1.0"
creator="ExpertGPS 1.1 - http://www.topografix.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.topografix.com/GPX/1/0"
xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">
<time>2002-02-27T17:18:33Z</time>
<bounds minlat="42.401051" minlon="-71.126602" maxlat="42.468655" maxlon="-71.102973"/>
<wpt lat="42.438878" lon="-71.119277">
@piscis
piscis / SassMeister-input.scss
Created June 1, 2015 15:05
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
@function convert($value, $currentUnit, $convertUnit){
@if $currentUnit == px{
@if $convertUnit == ems{
@return $value / 16+em;
@piscis
piscis / env.js
Created July 6, 2015 09:25
loadRemoteFile JSON test
var assert = require('assert');
describe('Environment test', function(){
it('It should not fail', function(){
assert.equal(1,1);
});
});
@piscis
piscis / gulpfile.bable.js
Created July 14, 2015 09:59
Bable gulp file used to build and deploy a ReactJS app
import path from 'path';
import cp from 'child_process';
import gulp from 'gulp';
import gulpLoadPlugins from 'gulp-load-plugins';
import del from 'del';
import mkdirp from 'mkdirp';
import runSequence from 'run-sequence';
import webpack from 'webpack';
import minimist from 'minimist';
import {exec} from 'child_process';
@piscis
piscis / git_log.sh
Created August 21, 2015 17:57
Format git log
git log --pretty="format: - %h - %s (%cd)" --abbrev-commit --author="Alex"
{
"filters": [{
"lang": [{"de": "XTAG (de)"}, {"en": "XTAG (EN)"}],
"key": "xtag"
}],
"projects": [{
"id": 1,
"description": "...",
"title": "...",
"tileUrl": "http://tile-url.example.org/tile.jpg",
@piscis
piscis / test.js
Last active October 22, 2016 17:19
{
type: "matrix",
columns: [
"Grade A",
"Grade B",
"Grade C",
"Grade D",
"Grade E",
"Grade F",
],
const matrixRatingColums = [
{ value: 1, text: '1' },
{ value: 2, text: '2' },
{ value: 3, text: '3' },
{ value: 4, text: '4' },
{ value: 5, text: '5' },
{ value: 6, text: '6' }
];
// ....
{ type: 'matrix', name: 'matrix',
@piscis
piscis / batchload.js
Created June 21, 2017 21:27
Batch loading font files react native
import async from 'async';
import { loadFont } from 'react-native-dynamic-fonts';
const fonts = [];
// Roboto-Regular
fonts.push({
type: 'ttf',
name: 'Roboto-Regular',
content: 'data:application/x-font-ttf;charset=utf-8;base64,AAEAAAASAQAABAAgR0RFRrRCsIIAAijcAAACYkdQT1P/GhLXAAIrQAAAXcxHU1VC64LkWQACiQwAABWQT1MvMpeCsagAAAGoAAAAYGNtYXABd1geAAAbWAAAEkZjdnQgK6gHnQAAMKgAAABUZnBnbXf4YKsAAC2gAAABvGdhc3AACAATAAIo0AAAAAxnbHlmJroL9AAAOxwAAelsaGRteFV6YHoAABZAAAAFGGhlYWT8atJ6AAABLAAAADZoaGVhCroKrgAAAWQAAAAkaG10eK5yj5cAAAIIAAAUOGxvY2GAd/+7AAAw/AAACh5tYXhwBz4DCQAAAYgAAAAgbmFtZeakFYkAAiSIAAAEJnBvc3T/bQBkAAIosAAAACBwcmVwomb6yQAAL1wAAAFJAAEAAAACIxKKf3BIXw889QAZCAAAAAAAxPARLgAAAADVAVL0+hv91QkwCHMAAAAJAAIAAAAAAAAAAQAAB2z+DAAACUn6G/5KCTAAAQAAAAAAAAAAAAAAAAAABQ4AAQAABQ4AjwAWAFQABQABAAAAAAAOAAACAAIkAAYAAQADBIYBkAAFAAAFmgUzAAABHwWaBTMAAAPRAGYCAAAAAgAAAAAAAAAAAOAAAv9QACBbAAAAIAAAAABHT09HAEAAAP/9BgD+AABmB5oCACAAAZ8AAAAABDoFsAAgACAAAwOMAGQAAAAAAAAAAAH7AAAB+wAAAg8AoAKPAIgE7QB3BH4AbgXcAGkE+QBlAWUAZwK8AIUCyAAmA3IAHASJAE4BkgAdAjUAJ