Linux installation notes (tested under Ubuntu 12.04LTS), assuming VirtualBox is installed.
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
<div class="form-gdpr"> | |
<div class="form-gdpr-title">Ønsker du en gang i blant å bli kontaktet om spennende nye tilbud og tjenester?</div> | |
<div class="form-group check-group"> | |
<label class="ip-label-check form-gdpr-ok" for="form-marketing"> | |
<input type="radio" | |
value='1' | |
bind:group=userData.marketing | |
name="marketing" | |
class="ip-check" | |
id="form-marketing"/> |
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 } from 'react' | |
import PropTypes from 'prop-types' | |
export default class LocalReducer extends Component { | |
static propTypes = { | |
handlers: PropTypes.object.isRequired, | |
mapPropsToInitialState: PropTypes.func.isRequired, | |
reducer: PropTypes.func.isRequired, | |
render: PropTypes.func.isRequired, | |
reducerKey: PropTypes.string |
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
// Before: | |
<route path="/path(:optional?)" /> | |
// new | |
<route path="/path/:optional?" /> | |
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
// will not trigger click: | |
page.find('a').simulate('click') | |
// works | |
page.find('a').simulate('click', {button:0}) |
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 PropTypes from 'prop-types' | |
/** | |
* This is an implementation of React-Routes Link element that will render even if the context | |
* is missing the router object. | |
*/ | |
const isModifiedEvent = (event) => | |
!!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey) |
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 | |
$host = '127.0.0.1'; | |
$db = 'dbname'; | |
$user = 'username'; | |
$pass = 'password'; | |
$charset = 'utf8'; | |
$dsn = "mysql:host=$host;dbname=$db;charset=$charset"; | |
$opt = [ |
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
/** | |
* @jsx React.DOM | |
*/ | |
var React = require('react/addons'); | |
/* the link component is used to navigate away from th current url. Some of it is app spesific and | |
therefore not included here. */ | |
var Link = require('../components/Link.jsx'); | |
var cx = React.addons.classSet; |
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
#!/bin/bash | |
# | |
# An example hook script to check the commit log message. | |
# Called by "git commit" with one argument, the name of the file | |
# that has the commit message. The hook should exit with non-zero | |
# status after issuing an appropriate message if it wants to stop the | |
# commit. The hook is allowed to edit the commit message file. | |
# | |
# Based on another example commit-msg hook I found here: | |
# https://review.typo3.org/Documentation/user-changeid.html |