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
<?php | |
class MyMigration extends Migration { | |
public $base_dir; | |
/** | |
* Constructor. | |
*/ | |
public function __construct() { | |
parent::__construct(); |
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
<?php | |
//returns a big old hunk of JSON from a non-private IG account page. | |
function scrape_insta($username) { | |
$insta_source = file_get_contents('http://instagram.com/'.$username); | |
$shards = explode('window._sharedData = ', $insta_source); | |
$insta_json = explode(';</script>', $shards[1]); | |
$insta_array = json_decode($insta_json[0], TRUE); | |
return $insta_array; | |
} |
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
# The following code goes in your ~/.profile | |
# | |
# This propmpt shows a beer when you launch a Terminal window on a Fridays. | |
# It checks every time you get a new prompt. A minute after 11:59M on a | |
# Thursday, if you press enter, it will add beer to the prompt. A minute | |
# after 11:59 PM on a Friday, no more beer. | |
# | |
# This is for terminals that use the Bash shell, which was the default for | |
# MacOS previous to Catalina. |
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": { | |
"twig/twig": "1.*" | |
} | |
} |