duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: mysql | |
spec: | |
ports: | |
- port: 3306 | |
nodePort: 30306 | |
selector: |
import React, { Component } from 'react' | |
import Subapp from './subapp/Root' | |
class BigApp extends Component { | |
render() { | |
return ( | |
<div> | |
<Subapp /> | |
<Subapp /> | |
<Subapp /> |
import Foundation | |
public func getASTString() -> String { | |
// get the file path for the file "test.json" in the playground bundle | |
// let filePath = NSBundle.mainBundle().pathForResource("FirstTtest", ofType: "ast") | |
// get the contentData | |
let contentData = NSFileManager.defaultManager().contentsAtPath("a.txt") | |
function mapValues(obj, fn) { | |
return Object.keys(obj).reduce((result, key) => { | |
result[key] = fn(obj[key], key); | |
return result; | |
}, {}); | |
} | |
function pick(obj, fn) { | |
return Object.keys(obj).reduce((result, key) => { | |
if (fn(obj[key])) { |
// Usage: | |
// Copy and paste all of this into a debug console window of the "Who is Hiring?" comment thread | |
// then use as follows: | |
// | |
// query(term | [term, term, ...], term | [term, term, ...], ...) | |
// | |
// When arguments are in an array then that means an "or" and when they are seperate that means "and" | |
// | |
// Term is of the format: | |
// ((-)text/RegExp) ( '-' means negation ) |
const composedCreateStore = compose( | |
applyMiddleware( | |
thunkMiddleware, | |
dispatchIdMiddleware, | |
webWorkerMiddleware('/build/worker.js'), | |
() => promiseMiddleware, | |
loggerMiddleware | |
), | |
createStore | |
); |
module.exports = function denodify(fn) { | |
return function() { | |
var self = this; | |
var args = Array.prototype.slice.call(arguments); | |
return new Promise(function(resolve, reject) { | |
args.push(function(error, result) { | |
error ? reject(error) : resolve(result); | |
}); |
After publishing my article on ECMAScript 6, some have reached out to ask how I exactly I make it all work.
I refrained from including these details on the original post because they're subject to immiment obsoletion. These tools are changing and evolving quickly, and some of these instructions are likely to become outdated in the coming months or even weeks.
When evaluating the available transpilers, I decided to use 6to5, which has recently been renamed to Babel. I chose it based on: