| ⌘T | go to file |
| ⌘⌃P | go to project |
| ⌘R | go to methods |
| ⌃G | go to line |
| ⌘KB | toggle side bar |
| ⌘⇧P | command prompt |
| # Start by checking if they fixed it upstream: | |
| brew update | |
| brew upgrade reattach-to-user-namespace | |
| # If it says it's already installed, they haven't fixed it upstream. So do this: | |
| # Edit the recipe: | |
| brew edit reattach-to-user-namespace |
Project Euler Sprint Hack Nights are beginner friendly events where you can work on your own projects or engage in a friendly competition called the Project Euler Sprint.
The Project Euler Sprint is a friendly competition involving solving Project Euler ([http://projecteuler.net][projecteuler]) problems for points. Project Euler is a series of increasingly difficult computational math problems that must be solved with code (generally speaking - we've had some impressive solutions in pen and paper as well as on an Excel spreadsheet).
Each problem is harder than the last, so each problem is worth its problem number in points. Problem #1 is easy, so it's worth 1 point, while problem #50 is much harder, but worth 50 points. You can form teams of 4 people and solutions can be in any language as long as it's coded there. More detailed rules below.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| // | |
| // toggleLaunchAtStartup.swift | |
| // Recents | |
| // | |
| // Created by Phil LaPier on 5/21/15. | |
| // Copyright (c) 2015 Philip LaPier. All rights reserved. | |
| // | |
| // With help from: https://github.com/RamonGilabert/Prodam/blob/master/Prodam/Prodam/LaunchStarter.swift | |
| import Foundation |
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');PS v1 is still in heavy development and everything can be discussed and changed later.
It's being developed in the next branch,
so please take a look if interested.
The following code shows how PS v1 will be used. For the detailed information,
some parts are tagged with a number following *.
The details are described below with the indexing number.
| // requires TypeScript 2.1 or higher | |
| export abstract class Lens<T, U> { | |
| abstract get: (obj: T) => U; | |
| abstract set: (value: U) => (obj: T) => T; | |
| then = <V>(lens: Lens<U, V>) => new ComposedLens(this, lens); | |
| thenKey = <L extends keyof U>(key: L): Lens<T, U[L]> => this.then(new ObjectLens<U, L>(key)); | |
| modify = (f: (value: U) => U) => (obj: T) => this.set(f(this.get(obj)))(obj); | |
| } | |
| export class IdLens<T> extends Lens<T, T> { |
