Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Copyright (c) 2015 - Xavier Cambar <@ xcambar_gmail.com> | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in |
arr = Array:: | |
arrSlice = arr.slice | |
curry = -> | |
args = arrSlice.call arguments | |
-> | |
args2 = arrSlice.call arguments | |
args[0].apply @, args.slice(1).concat(args2) | |
sum = -> |
Here is a list of scopes to use in Sublime Text 2 snippets - | |
ActionScript: source.actionscript.2 | |
AppleScript: source.applescript | |
ASP: source.asp | |
Batch FIle: source.dosbatch | |
C#: source.cs | |
C++: source.c++ | |
Clojure: source.clojure | |
CoffeeScript: source.coffee |
// I am trying to put a validation constraint on an input field for inputting a username that it be unique - | |
//if the name is already present in the database I want the validation to fail. | |
//Is there an obvious way to go about this? Any hint in the right direction would be appreciated. | |
/* | |
Here's an example from one of my projects. This is from a registration | |
form, to check if the email is already used. | |
First, I make "app" a required option of my form type: |
# Make mouse useful in copy mode | |
setw -g mode-mouse on | |
# Allow mouse to select which pane to use | |
set -g mouse-select-pane on | |
# Allow mouse dragging to resize panes | |
set -g mouse-resize-pane on | |
# Allow mouse to select windows |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
var crypto = require('crypto') | |
, fs = require('fs') | |
// Algorithm depends on availability of OpenSSL on platform | |
// Another algorithms: 'sha1', 'md5', 'sha256', 'sha512' ... | |
var algorithm = 'sha1' | |
, shasum = crypto.createHash(algorithm) | |
// Updating shasum with file content | |
var filename = __dirname + "/anything.txt" |
WebSockets is a modern HTML5 standard which makes communication between client and server a lot more simpler than ever. We are all familiar with the technology of sockets. Sockets have been fundamental to network communication for a long time but usually the communication over the browser has been restricted. The general restrictions
// | |
// toplevel.js | |
// | |
// TopLevel enables you to template your HTML, CSS, and Javascript at the Top Level | |
// (c) 2014 chris mckenzie. see LICENSE for more details. | |
// https://github.com/kristopolous/TopLevel for the latest version. | |
// | |
// Parts of this code use Jeremy Ashkenas' underscore library, available at | |
// https://github.com/jashkenas/underscore and protected by the license specified | |
// therein. |