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
(function ($) { | |
var APP = function () { | |
this.permanentId = $('.permanentId'); | |
this.table = $('table'); | |
this.lockButton = $('.btn-lock'); | |
}; | |
APP.prototype.start = function () { | |
var self = this; | |
this.permanentId.on("click", function () { |
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
//My answer Stackoverflow | |
// http://stackoverflow.com/a/30301335/2545964 | |
function baseAjaxCall(option, sCb) { | |
var ajaxOptions = { | |
method: option.method || "GET", | |
url: option.url, | |
dataType: option.dataType || "xml", | |
success : function(data) { | |
var root = $($.parseXML(data)).find("Response"); |
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
import com.samsung.android.sdk.gesture.Sgesture; | |
import com.samsung.android.sdk.gesture.SgestureHand; | |
import android.os.Looper; | |
public class GestureHand { | |
public static int UP = 1; | |
public static int DOWN = 2; | |
public static int LEFT = 3; |
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
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
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
<httpProtocol> | |
<customHeaders> | |
<add name="Access-Control-Allow-Origin" value="*" /> | |
<add name="Access-Control-Allow-Headers" value="Content-Type" /> | |
<add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS" /> | |
</customHeaders> | |
</httpProtocol> |
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
public override void OnActionExecuting(ActionExecutingContext context) | |
{ | |
var siteId = this._siteDataProvider.GetSiteId(context.HttpContext.Request.Url.Host); | |
HttpResponseBase response = context.HttpContext.Response; | |
string userAgent = context.HttpContext.Request.UserAgent; | |
if (userAgent.Contains("MSIE 8") || userAgent.Contains("MSIE 9")) | |
{ | |
switch (siteId) | |
{ | |
case (int)SiteEnum.A: |
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
public RootObject GetJsonDeserializer(string json) | |
{ | |
try | |
{ | |
JsonDataSession = (RootObject)JsonConvert.DeserializeObject(json, typeof(RootObject), new JsonSerializerSettings | |
{ | |
TypeNameHandling = TypeNameHandling.Auto, | |
NullValueHandling = NullValueHandling.Ignore, | |
MissingMemberHandling = MissingMemberHandling.Ignore, | |
Error = (serializer, err) => |
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
/* | |
* Module dependencies | |
*/ | |
import React from 'react'; | |
import { Router, Route, Link } from 'react-router' | |
class App extends React.Component { | |
render(){ |
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 gulp = require('gulp'); | |
var browserify = require('browserify'); | |
var source = require('vinyl-source-stream'); | |
var tsify = require('tsify'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var buffer = require('vinyl-buffer'); | |
var paths = { | |
pages: ['src/*.html'] | |
}; |