Skip to content

Instantly share code, notes, and snippets.

View archenemy's full-sized avatar

archenemy (Fernando G.) archenemy

View GitHub Profile
@archenemy
archenemy / cycle-list.php
Created March 28, 2017 14:45 — forked from chartjes/cycle-list.php
My PHP script for creating a Twitter list where people cycle on and off it based on 30 days of interaction
<?php
require "vendor/autoload.php";
use Abraham\TwitterOAuth\TwitterOAuth;
// You can get all these via https://dev.twitter.com/
$consumer_key = "";
$consumer_secret = "";
$access_token = "";
$access_token_secret = "";
$user_id = 0; // Twitter user ID
<?php
$stdin = fopen ("php://stdin","r");
$brain = array();
print "> ";
while ( $line = trim(fgets($stdin)) ) {
if ( $line == "q" ) break;
@archenemy
archenemy / awesome-php.md
Created November 1, 2012 11:54 — forked from ziadoz/awesome-php.md
Awesome PHP Libraries
@archenemy
archenemy / gist:2917017
Created June 12, 2012 11:36
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after