Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jayrhynas
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
jayrhynas
8y ago
That's due to a shorthand added in ES2015 that lets you construct an object where keys are equal to the name of the variable. So that's short for console.log({ a: a, b: b }) and then the console just prints out the new ob
32.
▲
by
jayrhynas
8y ago
I believe the compiler flag just disables the random seed - you can still use the new hasher API
33.
▲
by
jayrhynas
8y ago
Nothing inherently wrong with it, but it's not available on all platforms that support Swift. The new Random APIs use arc4random() under the hood on Darwin IIRC. There's also no direct equivalent to arc4random() in the new API - y
34.
▲
by
jayrhynas
8y ago
Looks like Safari will happily load a pdf in an img tag, but Chrome won't
35.
▲
by
jayrhynas
8y ago
I'm a fan of Fork ( https://git-fork.com/ ). I switched to it after I got frustrated with Sourcetree's performance, and haven't regretted it. The developer is very responsive and has built out a lot of function
36.
▲
by
jayrhynas
9y ago
Maybe automatic updates were turned on?
37.
▲
by
jayrhynas
9y ago
As long as the signature of the function matches you can pass it in directly
38.
▲
by
jayrhynas
9y ago
You used to be able to, it even came in a custom box, but it looks like they discontinued it. http://ldd.lego.com/en-us/subpages/designbyme
39.
▲
by
jayrhynas
9y ago
Sure, but then you're either pushing the responsibility on twitter to monitor how every API key they give out is used and label certain apps as bots, or on the user to look up an app and determine for themselves if it's a human o
40.
▲
by
jayrhynas
9y ago
And where do you draw the line? If you schedule a tweet to be sent in the future, is that a "bot"? And how to you make sure APIs aren't being used by bots - do you force users of 3rd party apps to enter a 1st party captcha to
41.
▲
by
jayrhynas
9y ago
It does however mention going the other way: > If you create a dual graph of a Voronoi diagram (connect each node to every other node that shares an edge), you end up with a graph that is a Delaunay Triangulation
42.
▲
by
jayrhynas
9y ago
I've probably spent more hours in this game than any other game on my phone, over its lifetime.
43.
▲
by
jayrhynas
9y ago
One thing I've noticed, if you're on a phone with force/3D touch, you have to hold much longer than usual on the left edge of the screen to do a hold action, because of the app switching feature
44.
▲
by
jayrhynas
9y ago
And for iOS: https://itunes.apple.com/ca/app/simon-tathams-portable-puzzl...
45.
▲
by
jayrhynas
10y ago
The way I see it, is: For all elements not explicitly positioned, sort by `order` value. If two elements have the same `order` value, sort by the order they appear in the source. So in the game, setting the `order` of the `#poison` to any v
46.
▲
by
jayrhynas
10y ago
Hopefully the recently announced precompiled bridging headers will help with compile time (for mixed-language products at least): https://swift.org/blog/bridging-pch/
47.
▲
by
jayrhynas
10y ago
That's actually coming with this update too. It looks like this [1] > Using the SKStoreReviewController API, you can ask users to rate or review your app while they're using it, without sending them to the App Store. [1]: http
48.
▲
by
jayrhynas
10y ago
They do say > During the transition period, Digits, the SMS authentication services, will be maintained by Twitter. but it's unclear what will happen long term
49.
▲
by
jayrhynas
10y ago
I think they're saying "joining" because > Fabric will join Google's Developer Product Group, working with the Firebase team.
50.
▲
by
jayrhynas
10y ago
He actually has released a version like that [1], I believe this is what he's referring to when he says he extracted Jasonette from an existing app. 1: https://itunes.apple.com/ca/app/jason./id1095557868?
51.
▲
Passing an Array of Strings from Swift to C
(oleb.net)
1 points
by
jayrhynas
10y ago
|
0 comments
52.
▲
by
jayrhynas
10y ago
I don't see anything in their trademark policy that implies they have registered any of their marks yet. In fact, all the marks in the "included, but not limited to" list use ™ instead of ®, the later which can only be used w
53.
▲
by
jayrhynas
10y ago
This gets you pretty close: https://github.com/apple/swift/pulls?q=is%3Apr+SE-
54.
▲
by
jayrhynas
10y ago
I just realized there's a small typo in the above, it should be return data[pos]
55.
▲
by
jayrhynas
10y ago
FYI, a third option is mutating func next() -> Element? { //... defer { pos += 1 } return pos } Whether it's better is a matter of opinion
56.
▲
by
jayrhynas
10y ago
"iPhone requires your passcode after restarting" vs "Touch ID requires your passcode when iPhone restarts" Also, if Touch ID is disabled then putting a finger on the sensor does nothing, but if it's enabled it shows
57.
▲
by
jayrhynas
10y ago
When you go to purchase with Bitcoin, it says "Unfortuantely Bitcoin orders are not refundable", so that might be why they're discouraging it for the average buyer.
58.
▲
by
jayrhynas
10y ago
It also supports UK postcodes[1], Canadian postal codes[2], and lat/long coordinates[3] 1: http://wttr.in/cb1 2: http://wttr.in/l1v 3: http://wttr.in/52.1988,0.0850
59.
▲
by
jayrhynas
10y ago
Or lat/long: http://wttr.in/52.1988,0.0850
60.
▲
by
jayrhynas
10y ago
If you have a font that supports proper monospaced unicode, it works: http://cl.ly/2f410i1k270D
More ›