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 | |
| // your blockchain guid | |
| $guid = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'; | |
| // your password | |
| $password = 'xxxxxxxx'; | |
| // your adrresses as array | |
| $addresses = array( | |
| 'xxxxxxxxxxxx' | |
| ); |
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
| require 'uri' | |
| require 'cinch' | |
| require 'open-uri' | |
| bot = Cinch::Bot.new do | |
| configure do |c| | |
| c.server = "irc.freenode.org" | |
| c.channels = ["#thelleo", '#load.re'] | |
| c.nicks = ['medyk-titlebot'] | |
| end |
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
| //FightCode can only understand your robot | |
| //if its class is called Robot | |
| var Robot = function(robot) { | |
| }; | |
| Robot.prototype.onIdle = function(ev) { | |
| var robot = ev.robot; | |
| robot.ahead(100); |
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
| require 'net/http' | |
| require 'uri' | |
| config = { | |
| :address => 'http://web1.worldofequestria.pl:6677', | |
| :command => 'screen -X -S chat kill; screen -dmS chat node ~/chat-server/server.js' | |
| } | |
| def online?(address) | |
| begin |
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
| # encoding: utf-8 | |
| require 'faye' | |
| require 'json' | |
| require 'digest/md5' | |
| config = { | |
| :port => 9999 | |
| } | |
| MESSAGES = { |
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
| <h1>Loading</h1> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
| <script> | |
| var fanpage = 'worldofequestria'; //@TODO: Replace fanpage name! | |
| setInterval(function(fp){ | |
| $.getJSON('http://graph.facebook.com/'+fp+'?callback=?', function(data){ | |
| var likes = parseInt(data.likes); | |
| console.log('updated: ' + likes); | |
| $('h1').html(likes); | |
| document.title = likes + ' likes'; |
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 | |
| include('_database.php'); | |
| list($app, $uid, $token) = $argv; | |
| $db->exec('SET NAMES utf8'); | |
| $query = $db->prepare('SELECT id, username, ponyname, guild_id, role, avatar, sex, token, banned FROM users WHERE id = :id'); | |
| $query->bindParam(':id', $uid, PDO::PARAM_INT); | |
| $query->execute(); | |
| $user = $query->fetch(PDO::FETCH_ASSOC); |
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
| require 'nokogiri' | |
| require 'open-uri' | |
| # This function is beautiful in its simplicity | |
| def progress(precent, current, max) | |
| print "\r" # I don't know how it will work on Windows xD I'm running this script on Linux. | |
| print 'Progress: %s/%s (%s%%)' % [current, max, precent.round(2)] | |
| end | |
| pages = 5 # You have to specify pages number manual, sorry |
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 | |
| /** | |
| * Export to PHP Array plugin for PHPMyAdmin | |
| * @version 0.2b | |
| */ | |
| // | |
| // Database `humanitee-www_bash` | |
| // |
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
| require 'rss' | |
| require 'open-uri' | |
| $config = { | |
| :url => '{{ REPLACE WITH YOUR REDMINE RSS FEED! }}', | |
| :interval => 10 | |
| } | |
| $cache = [] | |
| def loadRSS() |
OlderNewer