Skip to content

Instantly share code, notes, and snippets.

@touhonoob
touhonoob / designer.html
Created December 10, 2014 10:26
designer
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@touhonoob
touhonoob / designer.html
Last active August 29, 2015 14:11
designer
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>
angular.module('echarts.ja', [])
.value('echartsTranslation', {
mark: {
title: {
mark: '辅助线开关',
markUndo: '删除辅助线',
markClear: '清空辅助线'
}
},
Verifying that +peterchungtw is my openname (Bitcoin username). https://onename.io/peterchungtw
<div id="home" data-role="page">
<div role="main" class="ui-content">
<h1>Contract On</h1>
<div class="effect">
<div class="blackball"></div>
<div class="redball"></div>
<div class="greenball"></div>
<div class="blueball"></div>
</div>
</div>
<div id="home" data-role="page">
<div role="main" class="ui-content">
<h1>Contract On</h1>
<div class="effect">
<div class="blackball"></div>
<div class="redball"></div>
<div class="greenball"></div>
<div class="blueball"></div>
</div>
</div>
<?php
use Phalcon\DI as DI;
class Dummy {
private $test;
function getTest() {
return $this->test;
}
@touhonoob
touhonoob / cidr.php
Created August 23, 2014 17:34
Extract Google IP CIDRs
<?php
$blocks = [];
$result = shell_exec("nslookup -q=TXT _spf.google.com 8.8.8.8");
preg_match_all("%include:(.+?) %", $result, $matches, PREG_SET_ORDER);
foreach($matches as $block) {
$blocks[] = $block[1];
}
print_r($blocks);
#! /bin/sh
#
# Based on Mike Miller's gwhitelist at:
# http://archive.mgm51.com/sources/gwhitelist.html
# Copyright (c) 2013 Mike Miller <mmiller@mgm51.com>
#
# Modified 2014 by Steve Jenkins <steve@stevejenkins.com> to format
# output for mod_remoteip on Apache with Google PageSpeed Service
#
# Permission to use, copy, modify, and distribute this software for any
--prefix=/usr/local/nginx --add-module=../ngx_devel_kit-0.2.19 --add-module=../echo-nginx-module-0.54 --add-module=../xss-nginx-module-0.04 --add-module=../ngx_coolkit-0.2rc1 --add-module=../set-misc-nginx-module-0.24 --add-module=../form-input-nginx-module-0.09 --add-module=../encrypted-session-nginx-module-0.03 --add-module=../srcache-nginx-module-0.28 --add-module=../ngx_lua-0.9.10 --add-module=../ngx_lua_upstream-0.02 --add-module=../headers-more-nginx-module-0.25 --add-module=../array-var-nginx-module-0.03 --add-module=../memc-nginx-module-0.15 --add-module=../redis2-nginx-module-0.11 --add-module=../redis-nginx-module-0.3.7 --add-module=../rds-json-nginx-module-0.13 --add-module=../rds-csv-nginx-module-0.05 --with-ld-opt=-Wl,-rpath,/usr/local/luajit/lib --add-module=/home/peter/source/ngx_pagespeed-release-1.8.31.4-beta --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-http_spdy_module --with-http_ssl_module --with-http_gzip_stat