Skip to content

Instantly share code, notes, and snippets.

View youweit's full-sized avatar

You-wei Teng youweit

View GitHub Profile
3
2
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
3
1 2 5 4
3 11 6 15
9 10 7 12
'use strict';
/**
*
* The BlurFilter applies a Gaussian blur to an object.
* The strength of the blur can be set for x- and y-axis separately (always relative to the stage).
*
* @class BlurFilter
* @contructor
*/
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iittLLGG0000880000GGLLttii;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11LLGG88888888888888888888888888GGLL11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iiLL008888888888888888888888888888888888888800LLii;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iiLL88888888888888888888888888888888888888888888888888LLii;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;ff8888888888888888888888888888888888888888888888888888888888ff;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;11GG88888888888888888888888888888888888888888888888888888888888888GG11;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;tt8888888888888888888888888888888888888888888888888888888888888888888888tt;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;LL88888888888888888888888888888888888888888888888888888888888888888888888888LL;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;CC8888888888888888888888888888888888888888888888888888
// Copyright (c) 2013 Mutual Mobile (http://mutualmobile.com/)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
var gulp = require('gulp'),
path = require('path'),
EXPRESS_ROOT = path.join(__dirname, 'app');
var startExpress = function() {
var server = require('./server.js');
server({
dir:EXPRESS_ROOT,
port: 9898
});
#!/usr/bin/python
import urllib2
import re
import os
import sys
import send
import time
#!/usr/bin/python
import urllib2
import json
import pygmaps
url = 'http://60.199.253.136/api/action/datastore_search?resource_id=d7a1b4c2-cad0-44f2-958a-a9d7a9330c95&limit=10000'
def main():
content = urllib2.urlopen(url).read()
import math
###########################################################
## Google map python wrapper V0.1
##
############################################################
class maps:
def __init__(self, centerLat, centerLng, zoom ):
self.center = (float(centerLat),float(centerLng))
#!/usr/bin/pyhton
# -*- encoding: utf-8 -*-
import urllib2
import json
import pygmaps
from pygeocoder import Geocoder, GeocoderError
url = 'http://data.taipei.gov.tw/opendata/apply/query/QzhBMEJFOTctMEEzRC00M0Q2LThDNDktNDVCNDc3NDNDRDBC?$format=json'
#!/usr/bin/python
# -*- encoding: utf-8-*-
from bs4 import BeautifulSoup
import urllib2
def main():
data = urllib2.urlopen('https://play.google.com/store/apps/details?id=com.sparkslab.ourcitylovereporter')
html = data.read()