Skip to content

Instantly share code, notes, and snippets.

View blackbing's full-sized avatar
💭
I want play a game

Bingo Yang blackbing

💭
I want play a game
View GitHub Profile
@josephj
josephj / happy-desinger-mini-1.md
Last active December 18, 2015 10:39
於 HappyDesigner Mini #1 分享會

JavaScript 品質工具:CodePaint 與 Plato

介紹協助提昇 F2E Code Style 的兩個工具。

分享者

josephj@faria

問題

@Mithrandir0x
Mithrandir0x / gist:3639232
Created September 5, 2012 16:15
Difference between Service, Factory and Provider in AngularJS
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/
// author: Pawel Kozlowski
var myApp = angular.module('myApp', []);
//service style, probably the simplest one
myApp.service('helloWorldFromService', function() {
this.sayHello = function() {
return "Hello, World!"
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@blackbing
blackbing / jq.dectectBrowserVersion.js
Created January 24, 2011 10:17
an easy plugin to check the browser version and you can also use callback to block these kind of old fashion browser or do anything else
/*
* author: [email protected]
* version: 0.1
* date: 2011/01/24
* description: I am confused by browser version detection. What I need is blocking the browsers which are ie6/ie7/ff3 , however, I can't easily detect browser version. Cause I got the version which is like that "6.0.2900.5512.xpsp_sp3_gdr.100427-1636".
so I write an easy plugin to check the browser version and you can also use callback to block these kind of old fashion browser or do anything else.
For example:
$.dectectBrowserVersion({
filter: {