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 irc = require('irc'); | |
| console.log('IRC Bot Started...'); | |
| var client = new irc.Client('irc.ztecnet.net', 'JustinBieber', { | |
| channels: ['#ztecnet'], | |
| }); | |
| client.addListener('message#ztecnet', function (from, message) { | |
| console.log(from + ' => #ztecnet: ' + message); |
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 recaptcha_settings = { | |
| api_server: 'http://www.google.com/recaptcha/api', | |
| api_secure_server: 'https://www.google.com/recaptcha/api', | |
| verify_server: 'www.google.com', | |
| verify_path: '/recaptcha/api/verify' | |
| } | |
| module.exports = { | |
| get_html: function (pubkey, callback, error, use_ssl) //returns HTML | |
| { |
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
| global.escapeshell = function(cmd) { //http://stackoverflow.com/a/7685469 | |
| return '"'+cmd.replace(/(["\s'$`\\])/g,'\\$1')+'"'; | |
| }; | |
| global.say = function(string) | |
| { | |
| var os = require('os'); | |
| if (os.type() == 'Darwin') | |
| { |
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
| list convertHttpQ(string str) //converts strided list to query string | |
| { | |
| list strided_output = []; | |
| //remove ? | |
| string first_letter = llGetSubString(str, 0, 0); | |
| if (first_letter == "?") | |
| { | |
| str = llGetSubString(str, 1, llStringLength(str)); | |
| } |
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
| <?php | |
| $headers = 'From: ' . $fromname . ' <' . $fromaddress . ">\r\n"; | |
| $headers .= 'MIME-Version: 1.0' . "\r\n"; | |
| $headers .= 'Content-type: text/html; charset=UTF-8' . " \r\n"; | |
| ?> |
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
| // | |
| // main.m | |
| // structure | |
| // | |
| // Created by Kevin Whitman on 7/15/12. | |
| // Copyright (c) 2012 __MyCompanyName__. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> |
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 Imap = require('imap'), | |
| inspect = require('util').inspect; | |
| var imap = new Imap({ | |
| user: '[email protected]', | |
| password: 'yourpassword', | |
| host: 'imap.gmail.com', | |
| port: 993, | |
| tls: true | |
| }); |