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
[ | |
{ | |
"key": "ctrl+h", | |
"command": "workbench.action.focusLeftGroup", | |
"when": "editorTextFocus && vim.active && vim.mode != 'Insert'" | |
}, | |
{ | |
"key": "ctrl+l", | |
"command": "workbench.action.focusRightGroup", | |
"when": "editorTextFocus && vim.active && vim.mode != 'Insert'" |
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: Graylog2 | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Starts Graylog2 | |
# Description: Starts Graylog2 using start-stop-daemon | |
### END INIT INFO |
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
collection = require("mongodb/lib/mongodb/collection").Collection | |
oldFind = collection.prototype.find | |
collection.prototype.find = -> | |
tagName = "#{@db.databaseName}/#{@collectionName}/find" | |
findParameters = arguments[1] | |
start = +new Date() | |
cursor = oldFind.apply @, arguments |
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
zipstream = require "zipstream" | |
fs = require "fs" | |
async = require "async" | |
class StreamingResponse | |
filename: "" | |
files: [] | |
streaming: true | |
### |
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
/Library/WebServer/Documents/prisma/prisma-cloud/node_modules/tower/packages/tower-application/server/application.coffee:100 | |
return this._super.apply(this, arguments); | |
^ | |
TypeError: Cannot call method 'apply' of undefined | |
at Application.Tower.Application.Application.init (/Library/WebServer/Documents/prisma/prisma-cloud/node_modules/tower/packages/tower-application/server/application.coffee:100:26) | |
at Application.Class (/Library/WebServer/Documents/prisma/prisma-cloud/node_modules/tower/node_modules/ember-runtime-node/index.js:3202:12) | |
at Application.Hook (/Library/WebServer/Documents/prisma/prisma-cloud/node_modules/tower/packages/tower-application/shared/hook.coffee:10:41) | |
at Application.Engine (/Library/WebServer/Documents/prisma/prisma-cloud/node_modules/tower/packages/tower-application/shared/engine.coffee:10:43) | |
at new Application (/Library/WebServer/Documents/prisma/prisma-cloud/node_modules/tower/packages/tower-application/server/application.coffee:21: |
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
[email protected]/Library/WebServer/Documents/prisma/prisma-cloud | |
├── [email protected] | |
├── [email protected] | |
├─┬ [email protected] | |
│ └── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├─┬ [email protected] | |
│ └── [email protected] | |
├─┬ [email protected] |
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
<?php | |
function buildSetString($arguments) | |
{ | |
if (count($arguments) == 0) | |
{ | |
return ""; | |
} | |
$query = 'SET '; |
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
[ | |
// easy insert mode exiting | |
{ "keys": ["j", "j"], "command": "exit_insert_mode", | |
"context": | |
[ | |
{ "key": "setting.command_mode", "operand": false }, | |
{ "key": "setting.is_widget", "operand": 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
<?php | |
class App_Controller_Plugin_Auth extends Zend_Controller_Plugin_Abstract | |
{ | |
public function preDispatch(Zend_Controller_Request_Abstract $request) | |
{ | |
$auth = Zend_Auth::getInstance(); | |
if (!$auth->hasIdentity() | |
&& !($request->getControllerName() == "session" |
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
var hem = new (require('hem')); | |
var less = require('less'); | |
var fs = require('fs'); | |
var argv = process.argv.slice(2); | |
hem.compilers.less = function(path) { | |
var content, result; | |
content = fs.readFileSync(path, 'utf8'); | |
result = ''; |
NewerOlder