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 from 'react'; | |
import { reveal, revealContext, revealOpen } from './reveal'; | |
const Open = revealOpen({ name: 'example' })( | |
({ openReveal }) => ( | |
<a onClick={() => openReveal({ a: 10 }}>Open me!</a> | |
) | |
); | |
const Modal = reveal({ name: 'example' })( |
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
/** | |
* This gist was inspired by the video course titled "Building React Applications with Idiomatic Redux" | |
* available on Egghead.io by the creator of Redux, Dan Abramov. | |
* | |
* The purpose of this gist is to demonstrate general purpose reducers that can be used via Redux's combineReducers | |
* to compose more complex reducers and therefore maximize code reuse. | |
* | |
* Feedback is more than welcome! | |
* | |
* @author Christoffer Niska <christofferniska@gmail.com> |
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
/*eslint no-unused-vars: 0*/ | |
import { fromJS, Map } from 'immutable'; | |
import { createReducer } from '../helpers/store'; | |
import { AuthActionTypes } from '../actions/auth'; | |
import { | |
setSession, | |
setUser, | |
getSession, | |
getIsAuthenticated, |
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 { Group } from 'phaser'; | |
/** | |
* Renders the given display objects using the given render session. | |
* @param {Array} displayObjects | |
* @param {Object} renderSession | |
*/ | |
function renderDisplayObjects(displayObjects, renderSession) { | |
for (let i = 0; i < displayObjects.length; i++) { | |
displayObjects[i]._renderWebGL(renderSession); |
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 that eases the pain of working with remote resources. | |
*/ | |
angular.module('nord.resource-service', []) | |
/** | |
* Constants for the default resource actions. | |
*/ | |
.constant('ResourceAction', { | |
'CREATE': 'create', | |
'UPDATE': 'update', |
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
.debug { | |
&__heading { | |
margin-bottom: 20px; | |
} | |
&__message { | |
background: $gray-lightest; | |
margin-bottom: 20px; | |
padding: 20px; | |
} |
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
<?php namespace Nord\Lumen\FileManager; | |
use Jenssegers\Date\Date; | |
use Nord\Lumen\Doctrine\Traits\AutoIncrements; | |
class File | |
{ | |
use AutoIncrements; |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# Web server configuration | |
config.vm.define "web" do |web| | |
web.vm.box = "nordsoftware/nginx-php-nvm" |
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
//! moment.js locale configuration | |
//! locale : finnish (fi) | |
//! author : Tarmo Aidantausta : https://github.com/bleadof | |
//! author : Christoffer Niska : https://github.com/crisu83 | |
(function (global, factory) { | |
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) : | |
typeof define === 'function' && define.amd ? define(['moment'], factory) : | |
factory(global.moment) | |
}(this, function (moment) { 'use strict'; |
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
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping | |
https://raw.github.com/doctrine/doctrine2/master/doctrine-mapping.xsd"> | |
<entity name="App\Entities\User" table="users"> | |
<id name="surrogateId" type="integer" column="id"> | |
<generator strategy="AUTO" /> | |
</id> | |
<field name="id" type="string" column="identity" /> |