Using TypeScript with the Serverless framework


Using TypeScript with the Serverless framework
https://www.youtube.com/watch?v=FEoQlAVwvVE

Submitted August 05, 2017 at 11:05PM by spec-test
via reddit http://ift.tt/2vAkE0X

Advertisements

It is possible to get this function to return true, can you figure out the right input?


It is possible to get this function to return true, can you figure out the right input?

Open your browser dev tools then paste this in and see if you can get it to return true:

const isWeird = (i) => { try { const isFunction = i(0) const isArrayLike = i[i.length - 1] const isUndefined = typeof i === 'undefined' return isFunction && isArrayLike && isUndefined } catch (e) { return false } } 

Submitted August 05, 2017 at 10:29PM by jcready
via reddit http://ift.tt/2fhRXQi

Could someone disable the youtube UI?


Could someone disable the youtube UI?

I found a really nice script but there are still horizontal shadow-bars

javascript:(function(){var goaway=".ytp-chrome-top,.ytp-chrome-bottom{display:none;}";if("\v"=="v"){document.createStyleSheet().cssText=goaway}else{var tag=document.createElement("style");tag.type="text/css";document.getElementsByTagName("head")[0].appendChild(tag);tag[(typeof document.body.style.WebkitAppearance=="string")?"innerText":"innerHTML"]=goaway}})();

Submitted August 05, 2017 at 10:37PM by kastat37
via reddit http://ift.tt/2hxHq4o

Seeking feedback for my html5 iOS hybrid game.


Seeking feedback for my html5 iOS hybrid game.

The game, Atrophy, can be downloaded for free from the App Store at this link:

http://ift.tt/2rm3vny

It is an action-rpg made using 100% vanilla js wrapped using apache cordova.

Mostly, I need feedback regarding the controls/user interface. I have tried to make the tutorial clear, but it always seems obvious to me.

A preview video can be found here: https://youtu.be/NOruC5lqMQk

More info can be found here: http://ift.tt/2whBOyj

Any other comments or questions are welcome. Thanks!

Submitted August 05, 2017 at 10:39PM by mcwilljk
via reddit http://ift.tt/2fi8oMO

What is the most idiomatic way to do DB access?


What is the most idiomatic way to do DB access?

I am struggling to decide what is the most idiomatic way to do DB access in Go. I have looked at many blogs and repositories, and it still isn't clear to me what is the best/most idiomatic approach.

I have written five short and simple different examples of ways to do it. I am looking for suggestions on which is the best (or perhaps even in a way I haven't considered). You can find the examples in this repository: http://ift.tt/2ub3Ie2

Submitted August 05, 2017 at 09:52PM by whiteheadrj
via reddit http://ift.tt/2vA2NaL