Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| # 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 |
| // 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: |
| 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 |
| arr = Array:: | |
| arrSlice = arr.slice | |
| curry = -> | |
| args = arrSlice.call arguments | |
| -> | |
| args2 = arrSlice.call arguments | |
| args[0].apply @, args.slice(1).concat(args2) | |
| sum = -> |
| 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 |
| <?php | |
| // src/Foobar/Controller/FooController.php | |
| namespace Foobar\Controller; | |
| class FooController | |
| { | |
| public function helloAction($request) | |
| { |
| var cluster = require('cluster'); | |
| var http = require('http'); | |
| var numCPUs = require('os').cpus().length; | |
| if (cluster.isMaster) { | |
| // Fork workers. | |
| for (var i = 0; i < numCPUs; i++) { | |
| cluster.fork(); | |
| } | |
| cluster.on('exit', function(worker, code, signal) { |
Forget AMD and that's straight from the source. Sorry for the long build-up on the history, but if I'm to convince you to forget this non-technology, I think it's best you know where it came from. For those in a hurry, the executive summary is in the subject line. ;)
In Spring of 2009, I rewrote the Dojo loader during a requested renovation of that project. The primary pattern used to make it more practical was:
dojo.provide('foo', ['bar1', 'bar2'], function() {
[module code]
});