This file contains 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
<script type="text/javascript"> | |
var custom = "myapp://custom_url"; | |
var alt = "http://mywebsite.com/alternate/content"; | |
var g_intent = "intent://scan/#Intent;scheme=zxing;package=com.google.zxing.client.android;end"; | |
var timer; | |
var heartbeat; | |
var iframe_timer; | |
function clearTimers() { | |
clearTimeout(timer); |
This file contains 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
{ | |
"name": "think-in-react", | |
"version": "1.0.0", | |
"description": "", | |
"main": "app.js", | |
"scripts": { | |
"dev": "webpack-dev-server --devtool source-maps --hot --progress --colors --content-base .", | |
"build": "set NODE_ENV=production&&webpack -pd" | |
}, | |
"browserify": { |
This file contains 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
var App = (props) =>{ | |
return <ProductFilterTable items={props.items} /> | |
} | |
var ProductFilterTable = React.createClass({ | |
getInitialState: function(){ | |
return { | |
text: "", | |
onlyStock:false |
This file contains 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
package main | |
import ( | |
"fmt" | |
"html/template" | |
"io" | |
"log" | |
"net/http" | |
"os" | |
) |
This file contains 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
// | |
// API.swift | |
// | |
// Created by Taro Minowa on 6/10/14. | |
// Copyright (c) 2014 Higepon Taro Minowa. All rights reserved. | |
// | |
import Foundation | |
typealias JSONDictionary = Dictionary<String, AnyObject> |
This file contains 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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.4' | |
} | |
} | |
apply plugin: 'android' |
This file contains 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
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script> | |
<script type="text/javascript"> | |
if( !Object.create){ | |
Object.create = function( o ){ | |
function actor() {} | |
actor.prototype = o; |
This file contains 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
var DeferredHelper = { | |
objectVariableIsSet: function(object, variableName) { | |
var dfd = $.Deferred(); | |
var interval = setInterval(function() { | |
if (object[variableName] !== undefined) { | |
clearInterval(interval); | |
console.log('objectVariableIsSet'); | |
dfd.resolve() | |
} |
This file contains 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
<style type="text/css"> | |
#container { border: 1px solid #000; } | |
#left { background: #ccc; width: 300px; float: left; height:200px; } | |
#right { background: #ddd; width: 300px; float: right; height:200px;} | |
/* self clearing rules ie8以上及其firefox、chrome等浏览器支持 */ |
NewerOlder