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
// Used to check through an array of checkboxes or radio buttons with the same name attribute. | |
// max is an integer and is optional. it defaults to 1 if left empty. | |
function checkBoxesAreChecked(checkboxarray, max) { | |
var arraymax = max || 1; | |
var checkedcount = 0; | |
for (var i=0; i < checkboxarray.length; i++) { | |
if (checkboxarray[i].checked) { | |
checkedcount++; | |
} | |
} |
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
set nocompatible | |
source $VIMRUNTIME/vimrc_example.vim | |
source $VIMRUNTIME/mswin.vim | |
behave mswin | |
set diffexpr=MyDiff() | |
function MyDiff() | |
let opt = '-a --binary ' | |
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif | |
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif |
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
--[[ | |
###INSTALLATION INSTRUCTIONS### | |
Step 1: Save this file to your hard drive. I recommend the MushClient/Script directory. | |
Steps 2-4: Connect to Armageddon. Hit shift-ctrl-6 to open the scripting settings menu in mushclient. Make sure your scripting language is Lua (it's default), set your script prefix to forward slash (/), then click the browse button. Find where you downloaded this file and select it. Click OK to close the script dialogue. | |
Step 5: Connect to your character and send this command to Armageddon: /InstallInfobar() |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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
MIN_WORD_LENGTH = 2 | |
GRID_SIZE = 5 | |
inRange = (x, y) -> | |
0 <= x < GRID_SIZE and 0 <= y < GRID_SIZE | |
fs = require 'fs' | |
owl2 = fs.readFileSync 'OWL2.txt', 'utf8' | |
wordList = owl2.match /^(\w+)/mg | |
wordList = (word for word in wordList when word.length <= GRID_SIZE) | |
isWord = (string) -> | |
string in wordList |
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
// save_two() already exists. this should replace it, but currently validation happens *after* save_two() fires. this is a problem. my code assumes it's valid. | |
function save_two(){ | |
var contactData = {name1: 'firstname', val1: $('#firstname').val(), name2: 'lastname', val2: $('#lastname').val(),name3: 'emailaddress', val3: $('#emailaddress').val(),name4: 'contactnumber', val4: $('#contactnumber').val(),name5: 'company', val5: $('#company').val(),name6: 'contact_country', val6: $('#contact_country').val()}; | |
$.ajax({ | |
url: "http://lifesize.regusonline.net/form_change_two.php", | |
type: "POST", | |
data: contactData, | |
async:false, | |
success: function(data){ | |
} |
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
<head> | |
<style type="text/css"> | |
div#livestream { | |
width:560px; | |
margin:0 auto; | |
} | |
div#comeback { |
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
Option Explicit | |
Sub OutputNotesXML() | |
Dim iRow As Long | |
Close #1 | |
With ActiveSheet | |
'For iRow = 2 To 2 | |
Open ThisWorkbook.Path & "\evernote-import.enex" For Output As #1 |
OlderNewer