- jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
- Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
- AngularJS - Conventions based MVC framework for HTML5 apps.
- Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
- lawnchair - Key/value store adapter for indexdb, localStorage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* We need to add a little processing to the normal buildRequest. In YQL we send an SQL-like | |
* query statement - in this case using the search query above. To honor the filters applied | |
* by the user, we pull those out in this function and apply them to the search XTemplate. | |
* Finally, we modify the url to add this generated query and any other required parameters. | |
*/ | |
buildRequest: function(operation) { | |
var hack = Ext.apply({params: {filters: []}}, arguments); | |
var request = Ext.data.KivaProxy.superclass.buildRequest.apply(this, [hack]), | |
queryTpl = this.queries.search, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.define('Test', { | |
extend:'Ext.form.field.Picker', | |
alias: 'widget.test', | |
requires: ['Ext.form.field.Date', 'Ext.picker.Time', 'Ext.view.BoundListKeyNav', 'Ext.Date'], | |
alternateClassName: ['Test'], | |
/** | |
* @cfg {String} [triggerCls='x-form-time-trigger'] | |
* An additional CSS class used to style the trigger button. The trigger will always get the {@link #triggerBaseCls} | |
* by default and triggerCls will be **appended** if specified. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE | |
DELETE _template/{name} | |
DELETE {index} | |
DELETE {index}/_alias/{name} | |
DELETE {index}/_query | |
DELETE {index}/_warmer | |
DELETE {index}/_warmer/{name} | |
DELETE {index}/{type} | |
DELETE {index}/{type}/_mapping | |
DELETE {index}/{type}/_query |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start m=node:Movie(id="120") | |
match m<-[r:ACTS_IN]-(actor)-[role:ACTS_IN]->(movie) | |
return collect(movie.title + " : " + role.name), actor.name + " : " + r.name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.define('Glandore.model.Base', { | |
extend: 'Ext.data.Model', | |
idProperty: 'id', | |
isNew: function() { | |
return this.phantom == true; | |
}, | |
linkedAssociations: false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST "http://localhost:9200/articles/article" -d '{"title" : "One", "tags" : ["foo"]}' | |
curl -X POST "http://localhost:9200/articles/article" -d '{"title" : "Two", "tags" : ["foo", "bar"]}' | |
curl -X POST "http://localhost:9200/articles/article" -d '{"title" : "Three", "tags" : ["foo", "bar", "baz"]}' | |
curl -X POST articles/article/_search | |
{ | |
"query": { | |
"function_score": { | |
"functions": [ | |
{ | |
"script_score": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: redis-server | |
# Required-Start: $syslog | |
# Required-Stop: $syslog | |
# Should-Start: $local_fs | |
# Should-Stop: $local_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: redis-server - Persistent key-value db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "../../Core/View/layouts/main.volt" %} | |
{% block head %} | |
<script type="text/javascript"> | |
var manageUsersAction = function($btn) { | |
PhalconEye.widget.modal.open($btn.data('url'), {'callbackFn': 'onAfterUserSelection'}); | |
} | |
var onAfterUserSelection = function(users) { | |
var container = $('#assigneesWrapper').html(''); |
OlderNewer