use diff
to get fun red and green lines
- old
+ new
<label for="addressCountry">Country</label> | |
<select name="addressCountry"> | |
<option></option> | |
<optgroup label="North America"> | |
<option value="US">United States</option> | |
<option value="UM">United States Minor Outlying Islands</option> | |
<option value="CA">Canada</option> | |
<option value="MX">Mexico</option> | |
<option value="AI">Anguilla</option> | |
<option value="AG">Antigua and Barbuda</option> |
import λ from "apex.js"; | |
import { Pool } from "pg"; | |
// connection details inherited from environment | |
const pool = new Pool({ | |
max: 1, | |
min: 0, | |
idleTimeoutMillis: 120000, | |
connectionTimeoutMillis: 10000 | |
}); |
// original | |
@import "mgmt/sprites/icons/*.png"; | |
$icons: sprite-map("mgmt/sprites/icons/*.png"); | |
.test { | |
background: transparent $icons no-repeat 0 0; | |
} | |
// my test |
crypto = require('crypto'); | |
exampleClientId = 'my_client_id' | |
mySharedKey = 'shared_key' | |
cipher = crypto.createCipher('aes256', mySharedKey) | |
cipherText = cipher.update(exampleClientId, 'utf8', 'base64') | |
cipherText += cipher.final('base64') | |
decipher = crypto.createDecipher('aes256', mySharedKey) |
import React from "react"; | |
export default function MainLayout(Child) { | |
return class MainLayoutComponent extends React.Component { | |
static getInitialProps(context) { | |
return Child.getInitialProps(context); | |
} | |
render() { |
const Sequelize = require("sequelize"); | |
const sequelize = new Sequelize( | |
process.env.DB_NAME, | |
process.env.DB_USER, | |
process.env.DB_PASS, | |
{ | |
host: process.env.DB_HOST, | |
dialect: "mysql" | |
} |
var first = true; | |
module.exports = function () { | |
console.log(`first: ${first}`); | |
if (first) { | |
first = false; | |
} | |
}; |
use diff
to get fun red and green lines
- old
+ new
I hereby claim:
To claim this, I am signing this object:
assert = require 'assert' | |
driver = require '../../src/driver' | |
describe 'driver', -> | |
it 'should have drive as skill', -> | |
assert.equal driver.data.skill, "Drive", "skill not set" |