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
describe('table model', function() { | |
var hud, tableModel; | |
beforeEach(function(){ | |
hud = jasmine.createSpyObj('hud', ['info']); | |
module('your-module-name', function($provide) { | |
$provide.value('hud', hud); | |
}); | |
inject(function(tableModelFactory) { |
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
/** | |
* @license Angular Auth | |
* (c) 2012 Witold Szczerba | |
* License: MIT | |
*/ | |
angular.module('angular-auth', []) | |
/** | |
* Holds all the requests which failed due to 401 response, | |
* so they can be re-requested in the future, once login is completed. |
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
import java.io.BufferedReader; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import java.io.PrintStream; | |
import java.util.Map; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
/** | |
* The class filters file (passed as first argument) with system environment entries to standard out. |
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
package pl.espeo.sgn.jooq; | |
import org.jooq.Converter; | |
/** | |
* | |
* @author Witold Szczerba | |
*/ | |
public class OracleBooleanConverter implements Converter<Byte, Boolean> { |
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
package pl.espeo.sgn.e2e; | |
import java.util.List; | |
import org.apache.commons.lang3.StringUtils; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.JavascriptExecutor; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.WebDriverException; | |
import org.openqa.selenium.WebElement; |
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 vertx = require('vertx') | |
var console = require('vertx/console') | |
var eb = vertx.eventBus; | |
var address = 'example.address' | |
var creditsAddress = 'example.credits' | |
var batchSize = 10000; |
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
package test; | |
import java.util.Hashtable; | |
import java.util.Scanner; | |
import javax.naming.Context; | |
import javax.naming.NamingException; | |
import javax.naming.directory.DirContext; | |
import javax.naming.directory.InitialDirContext; | |
import javax.naming.ldap.LdapContext; |
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
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.util.Scanner; | |
/** | |
* This script reads STDIN (as UTF-8), splits by semicolon, and executes command by command. | |
* Three arguments are required: database URL, username and password. | |
* Remember to set classpath for database driver. | |
* @author Witold Szczerba | |
*/ |
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(module) { | |
"use strict"; | |
// THIS IS ALPHA VERSION, JUST A SNIPPET OF A PROTOTYPE | |
module.factory('socket', function($rootScope, $q, $browser) { | |
var self = { | |
_iosocket: io.connect(), |
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 lockMonitor = {}; | |
function schedule(messageKey, callback) { | |
function run(messageObject, trace, deferred) { | |
var lockKey = messageObject[messageKey]; | |
if (!lockMonitor[lockKey]) { | |
lockMonitor[lockKey] = true; | |
var result = callback(messageObject, trace); | |
deferred.resolve(result); |
OlderNewer