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 React, {Component, ErrorInfo, ReactNode} from 'react'; | |
import {CustomError} from '@components/error/custom.error'; | |
interface Props { | |
children?: ReactNode; | |
} | |
interface State { | |
hasError: boolean; |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
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'] | |
}; |
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
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
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
<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
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
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; |
NewerOlder