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
/* | |
* This is my accordion for Ionic 1 please visit http://www.antoniogallo.it/ | |
*/ | |
angular.module('rootApp').directive('ionItemAccordion', function($log, $ionicScrollDelegate,$ionicPosition, $timeout) { | |
return { | |
restrict: 'E', | |
replace: true, | |
transclude: true, | |
require: '^ionList', |
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
/* | |
* simple replacement for angular1 $log service | |
* https://www.antoniogallo.it/ | |
*/ | |
declare var console: any; | |
export class $log { | |
static has_debug: boolean = true; |
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 lang="en" dir="ltr"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Ionic App</title> | |
<meta name="viewport" | |
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> | |
<meta name="format-detection" content="telephone=no"> | |
<meta name="msapplication-tap-highlight" content="no"> |
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
import {$log} from "./$log"; | |
import {jsObjectPrettyPrint} from "./js-object-pretty-print"; | |
/** | |
* try to avoid circular references | |
* @param obj | |
* @returns {string} | |
*/ | |
export function jStringify(obj) { |
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
// https://css-tricks.com/snippets/css/a-guide-to-flexbox/ | |
.flexbox-container-block { | |
display: -webkit-box; | |
display: -moz-box; | |
display: -ms-flexbox; | |
display: -webkit-flex; | |
display: flex; | |
} |
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
#!/usr/bin/env bash | |
# Space/Tab separated list of cryptocurrencies to query | |
CRYPTO="BTC ETH ZEC PPC" | |
# Fiat separated by comma | |
#FIAT="EUR,USD" | |
#FIAT="USD" | |
FIAT="EUR" |
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
" CORE | |
set nocompatible | |
set enc=utf-8 | |
" GUI | |
syntax on | |
colorscheme pablo | |
" Formatting / Indent |
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
/* | |
* Antonio Gallo - https://www.antoniogallo.it - http://www.badpenguin.org/ | |
* simple replacement for angular1 $log service | |
*/ | |
// makes TS compiler happy | |
import {jStringify} from "./helpers"; | |
import {Observable} from "rxjs"; | |
declare let console: any; |
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
org.gradle.parallel=true | |
org.gradle.daemon=true | |
org.gradle.jvmargs=-Xms512m -Xmx1024m |
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
set $cicciopasticcio 0; | |
if ($request_uri ~* "/wp-admin|/wp-login.php") { | |
set $cicciopasticcio 1; | |
} | |
if ($request_uri ~* "/wp-admin/admin-ajax.php") { | |
set $cicciopasticcio 0; | |
} | |
if ($cookie_cicciopasticcio != "nginx") { | |
set $cicciopasticcio "${cicciopasticcio}1"; | |
} |
OlderNewer