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
*Change Apache target:* | |
gvim C:\wamp\bin\apache\apache2.2.22\conf\httpd.conf | |
*Bring up Wamp:* | |
Start-Process "$psHome\powershell.exe" -Verb Runas -ArgumentList '-command "net stop w3svc"' | |
&"C:\wamp\wampmanager.exe" | |
*Open Browsers:* | |
&"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "http://127.0.0.1" | |
&"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" "http://127.0.0.1" |
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
/*####---------------------BEGIN UTIITIES---------------------####*/ | |
/** | |
* check for console. if it's not present, creates a console | |
* object with methods that do nothing. Thus you avoid errors | |
* in browsers without a console. | |
*/ | |
if(typeof console === "undefined") { | |
console = { | |
debug: function() { }, | |
dir: function() { }, |
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 |
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
// 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
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
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
--[[ | |
###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() |