This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head profile="http://selenium-ide.openqa.org/profiles/test-case"> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<link rel="selenium.base" href="https://github.com/" /> | |
<title>while</title> | |
</head> | |
<body> | |
<table cellpadding="1" cellspacing="1" border="1"> |
This file contains hidden or 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/bash | |
# A simple test script to demonstrate how to find the | |
# "absolute path" at which a script is running. Used | |
# to avoid some of the pitfals of using 'pwd' or hard- | |
# coded paths when running scripts from cron or another | |
# directory. | |
# | |
# Try it out: | |
# run the script from the current directory, then |
This file contains hidden or 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 init = require('./test/common/init'); | |
// a list of functions that we want to call, in order | |
var steps = [ | |
init.createSubscriberTable, | |
init.clearSubscriberTable, | |
init.createTestSubscribers, | |
init.createSubscriberNoticesTable, | |
init.clearSubscriberNoticesTable, | |
init.createTestSubscriberNotices |
This file contains hidden or 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 init = require('./test/common/init'); | |
// a list of functions that we want to call, in order | |
var steps = [ | |
init.createSubscriberTable, | |
init.clearSubscriberTable, | |
init.createTestSubscribers, | |
init.createSubscriberNoticesTable, | |
init.clearSubscriberNoticesTable, | |
init.createTestSubscriberNotices |
This file contains hidden or 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'll be creating some specialized callbacks | |
var callbacks = []; |
This file contains hidden or 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
// here we create a callback for each function in our list above | |
for (var i = 0; i < steps.length; i++) { | |
callbacks[i] = createCallback(i); | |
} |
This file contains hidden or 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
// now we invoke the first function with the first callback | |
// sit back and watch the functions execute one by one... | |
steps[0](callbacks[0]); |
This file contains hidden or 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
// how we create the specialized callbacks | |
function createCallback(index) { | |
return function (err, result) { | |
var next = steps[index+1]; | |
var cb = callbacks[index+1]; | |
if (err) { | |
console.log('Error: ' + err.message); | |
} else if (result) { | |
console.log('Result: ' + JSON.stringify(result)); | |
} |
This file contains hidden or 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
// Toggle commented blocks of code with a single slash | |
// open comment: /* | |
// close comment: // */ | |
// uncomment: //* | |
// pivot comment /*/ | |
/* | |
"commented" | |
// */ |
This file contains hidden or 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 sublime, sublime_plugin, re | |
class autojslint(sublime_plugin.EventListener): | |
def on_post_save(self, view): | |
settings = sublime.load_settings("autojslint.sublime-settings") | |
if re.search( settings.get( "filename_filter" ), view.file_name() ): | |
view.window().run_command( "build" ) |
OlderNewer