This file contains hidden or 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
| const HelloMessage = props => <div>Hello {props.name}</div> | |
| HelloMessage.intialState = { isMounted: false } | |
| const focusAfterAfterOneSec = el => { | |
| setTimeout(() => { | |
| if (!isMounted) return; | |
| el.focus(); | |
| }, 1000); | |
| } |
This file contains hidden or 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
| // For an introduction to the Blank template, see the following documentation: | |
| // http://go.microsoft.com/fwlink/?LinkId=232509 | |
| (function () { | |
| "use strict"; | |
| var app = WinJS.Application; | |
| var activation = Windows.ApplicationModel.Activation; | |
| app.onactivated = function (args) { | |
| if (args.detail.kind === activation.ActivationKind.launch) { |
This file contains hidden or 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
| using Microsoft.Owin; | |
| using System; | |
| using System.IO; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace CyberBar.BaseAPI.Infrastructure | |
| { | |
| public class InspectableContext : IDisposable | |
| { |
This file contains hidden or 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
| using Newtonsoft.Json; | |
| using Newtonsoft.Json.Serialization; | |
| namespace CyberBar.BaseAPI.Util | |
| { | |
| public static class JsonExtensions | |
| { | |
| private static JsonSerializerSettings _settings = new JsonSerializerSettings() | |
| { | |
| ContractResolver = new CamelCasePropertyNamesContractResolver(), |
This file contains hidden or 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
| using log4net; | |
| using System; | |
| using System.Net; | |
| using System.Net.Http; | |
| using System.Threading.Tasks; | |
| using System.Web; | |
| namespace CyberBar.BaseAPI.Util | |
| { | |
| public static class HttpExtensions |
This file contains hidden or 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 } from 'react'; | |
| import CheckoutContainer from './containers/CheckoutContainer'; | |
| import { createStore, applyMiddleware, combineReducers } from 'redux'; | |
| import thunk from 'redux-thunk'; | |
| import { Provider } from 'react-redux'; | |
| import * as reducers from './reducers'; | |
| import { pouchMiddleware, getState } from './redux-pouchdb'; | |
| getState().then(initialState =>{ | |
| const createStoreWithMiddleware = applyMiddleware(thunk, pouchMiddleware)(createStore); |
This file contains hidden or 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
| using Microsoft.Win32; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace MyNamespace | |
| { |
This file contains hidden or 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
| using System; | |
| using System.Diagnostics.CodeAnalysis; | |
| using System.Security.Cryptography; | |
| using System.Text; | |
| using Raven.Client.UniqueConstraints; | |
| namespace Miyagi.Core.Models | |
| { | |
| [ExcludeFromCodeCoverage] | |
| public abstract class BaseUser |
This file contains hidden or 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
| using AutoMapper; | |
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| namespace Miyagi.Common.Helpers | |
| { | |
| public static class AutoMapperExtensions | |
| { | |
| public static List<TResult> MapTo<TResult>(this IEnumerable self) |
This file contains hidden or 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 formulas = { | |
| q: function () { | |
| return Math.pow(~~prompt('lado'), 2); | |
| }, | |
| r: function () { | |
| return ~~prompt('comprimento') * ~~prompt('largura'); | |
| }, | |
| c: function () { | |
| return Math.PI * Math.pow(~~prompt('raio'), 2); | |
| }, |