Skip to content

Instantly share code, notes, and snippets.

View workgena's full-sized avatar

Hennadii M. workgena

  • Amsterdam, The Netherlands
View GitHub Profile
AllCops:
TargetRubyVersion: 2.5
Exclude:
- 'bin/*'
- 'config/**/*'
- 'db/**/*'
- 'script/*'
- 'config.ru'
- 'Rakefile'
@workgena
workgena / cooke.js
Created October 2, 2015 10:27
cooke.js
/**
*
* Usage:
* Create/Update: Cookie.set("username", "John", 90);
* Read: Cookie.get("username");
* Destroy: Cookie.delete("username");
*
*/
var Cookie = {
set: function (name,value,days) {