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 | |
/** | |
* Created by PhpStorm. | |
* User: Fritz Gerneth | |
* Date: 17.03.2016 | |
* Time: 17:38 | |
*/ | |
namespace Application; |
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
if(function_exists('add_shortcode_param')) | |
{ | |
add_shortcode_param('icon_manager', array($this,'icon_manager')); | |
} | |
// Generate param type "number" | |
if ( function_exists('add_shortcode_param')) | |
{ | |
add_shortcode_param('number' , array(&$this, 'number_settings_field' ) ); | |
} | |
// Generate param type "heading" |
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
function funct_vcExtension_tabDeepLink_tabIDChanged() | |
{ | |
jQuery('.funct_vcExt_deepLink_tabId').text(jQuery('.tab_id_field').val()); | |
} |
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
if ((log != null) && (log.isErrorEnabled())) { | |
log.error("Critical error in controlcycle of agent: " + getAgentName() + ". Stopping Agent! Exception: ", e); | |
} else { | |
System.err.println("Critical error in controlcycle of agent: " + getAgentName() | |
+ ". Stopping Agent. Exception: "); | |
e.printStackTrace(); | |
} |
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 http = require('http'); | |
var sockjs = require('sockjs'); | |
var WebSocket = require('ws'); | |
var proxy = sockjs.createServer(); | |
proxy.on('connection', function(conn) { | |
var client = new WebSocket('ws://192.168.178.59:3000/sockjs/websocket'); | |
client.on('open', function() { | |
console.log('Proxy -> Server', 'connected'); | |
}); |
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
Template['project.index'].rendered = function () { | |
"use strict"; | |
$('#project-index-add-member').typeahead({ | |
source: function (query, process) { | |
Meteor.subscribe('user.emails', query, function () { | |
var mailsResult = Meteor.users.find({ | |
"emails.address": new RegExp(query) | |
}).fetch(); | |
var mails = []; |
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 MyEntityValidator = function (animal) { | |
if (!animal.name) { | |
return false; | |
} | |
// ... | |
return 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
var initial = true; | |
var handle = query.observeChanges({ | |
added: function (id, user} { | |
if (!initial) doSomeAction(); | |
} | |
}); | |
intial = 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
(function (InnoAccel, _) { | |
"use strict"; | |
InnoAccel.Application = function (instances) { | |
var self = this, | |
services = instances || {}, | |
registeredModules = []; | |
if (!services.request) { |
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
Template.freeboxes.hasErrorBoxes = function () { | |
return (Freeboxes.find({yourConditionInHere}).count() > 0); | |
}; |