Problem What’s the best way to approach generating a password using a secure prng? In Python, I could simply use […]
Tag: coffeescript
Remove nodejs/browser specific code in library
Problem I’m the maintainer of the following library on github: https://github.com/edi9999/docxtemplater/blob/master/coffee/docxgen.coffee I want to maintain a library that works on […]
Promises and chained calls
Problem I’ve realized JS callback hell and I started looking into Promises libraries. After reading some articles I decided to […]
Fibonacci using cache
Problem This is my simple Fibonacci implementation in CoffeeScript. What do you think? Using cache (fibResults), it’s very very fast. […]
HTML5 Video player
Problem I do HTML5 Video player with some controls. I have a button, where I change classname for make play, […]
NodeJS conditional request before the real request
Problem In my code I have to login a user with username and password. But if the user sends his […]
Adding push to array inside the class that is being pushed
Problem I used to mostly do this: class Person constructor : (@parent, @data)-> @index = @parent.length class People constructor : […]
Simple CoffeeScript navigation menu
Problem I’m using simple script to handle tab menu like this: HTML: <nav id=”personal”> <ul class=”clearfix”> <li id=”personal-info”>Info</li> <li id=”personal-orders”>Orders</li> […]
Idle game code optimization
Problem I am currently making an idle game, and I currently have a few issues about optimization that I want […]
Configuring a DataTable using CoffeeScript
Problem I am working on a simple Rails app. For the Expense resource I use a DataTable. So, in my […]
- 1
- 2