Skip to content

Instantly share code, notes, and snippets.

View segebee's full-sized avatar
💭
building products

Segun Abisagbo segebee

💭
building products
View GitHub Profile
@segebee
segebee / gist:bfa52e52a203abadeed1
Created April 14, 2015 16:18
Facebook Birthday Auto Poster
var textInput = document.getElementsByClassName("textInput");
for (var i = 0; i < textInput.length; i++)
{
textInput[i].value = "Happy Birthday!";
//pending - press the enter key via javascript so facebook sends birthday wish
// Create new event
//var e = document.createEvent('KeyboardEvent');
// Init key event
//e.initKeyEvent('keydown', true, true, window, false, false, false, false, 13, 0);
// Dispatch event into document
void function() {//closure
var global = this
, _initKeyboardEvent_type = (function( e ) {
try {
e.initKeyboardEvent(
"keyup" // in DOMString typeArg
, false // in boolean canBubbleArg
, false // in boolean cancelableArg
, global // in views::AbstractView viewArg
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class MY_Session extends CI_Session
{
public function __construct($params = array())
{
log_message('debug', "Session Class Initialized");
// Set the super object to a local variable for use throughout the class
$this->CI =& get_instance();
@segebee
segebee / instagrab
Created August 23, 2014 21:27
Instagram Photo Grabber via Console
$(".mediaPhoto div").each(function(index) { console.log($(this).attr('src')) })
//run in console to get a list of image urls
CREATE TABLE IF NOT EXISTS `country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`nicename` varchar(80) NOT NULL,
`iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL,
`phonecode` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;