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
module MTA | |
def self.set_mta_data | |
cleaned_mta_data = {} | |
lines_name_color.each do |name_color| | |
cleaned_mta_data[name_color[0]] = { | |
name: name_color[0], | |
color: name_color[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
module MTA | |
def self.set_mta_data | |
cleaned_mta_data = {} | |
lines_name_color.each do |name_color| | |
cleaned_mta_data[name_color[0]] = { | |
name: name_color[0], | |
color: name_color[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
sudo apt-get -y install ruby-dev | |
sudo apt-get -y install postgresql | |
sudo apt-get -y install postgresql-contrib | |
sudo apt-get -y install libpq-dev | |
sudo apt-get -y install build-essential | |
touch ~/.psql_history | |
sudo -u postgres createuser --superuser $USER |
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 | |
require 'CSV' | |
rescue | |
require 'csv' | |
end |
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
// Flamer | |
$('body').on('keydown', function(e){ | |
var key = e.keyCode; | |
if (key==37){ | |
$('button.green').first().click() | |
}else if(key==39){ | |
$('button.red').first().click() | |
} | |
}) |
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
var port = parseInt(process.argv[2]) || 8000; | |
var http = require('http'); | |
var fs = require('fs'); | |
var path = require('path'); | |
http.createServer(function (request, response) { | |
var filePath = request.url; |
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
// Copy Paste into JS console for ANY website... | |
var images = document.getElementsByTagName('img') | |
for (var i = 0; i < images.length; i++) { | |
images[i].src = 'http://andrewmadden.com/pageContent/images/face.png' ; | |
} |
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
require 'socket' | |
server = TCPServer.new 2000 | |
loop do | |
client = server.accept | |
if request = client.gets | |
puts "\n------ request ------" |
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
var handle = setInterval(function(){ | |
$($('.nav-appendPager')[0]).trigger('click'); | |
}, 250); | |
var names = []; | |
setTimeout(function(){ | |
clearInterval(handle); | |
var members = $('.member-name') |
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
var user = { | |
name: 'Lichard DeGray', | |
age: 65, | |
email: 'lichyLich803@aol.com', | |
username: 'lichyLich803', | |
friends: ['omily53', 'katkatPapaSmurf', 'annie.lin'], | |
post: function(){ | |
// Do all the stuff needed to post a entry/post | |
// return 'I posted as ' + this['name']; | |
return 'I posted as ' + this.name; |