I hereby claim:
- I am chrisvogt on github.
- I am chrisvogt (https://keybase.io/chrisvogt) on keybase.
- I have a public key whose fingerprint is 48DD CA76 067C 9B5C B126 79AC A63F 9EE3 9564 3483
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| /** | |
| * Extract and tally all public commits made to GitHub this month for a user. | |
| * @author CJ Vogt <[email protected]> | |
| */ | |
| $(function() { | |
| $('#loading').html('loading...'); | |
| /** | |
| * Contains GitHub User PushEvents | |
| * @type {object} |
| $(function() { | |
| // add loading image to div | |
| $('#loading').html('loading...'); | |
| // run ajax request | |
| $.ajax({ | |
| type: "GET", | |
| dataType: "json", | |
| url: "https://projects.chrisvogt.me/api/1.0/all.json", | |
| success: function (data) { |
| -- ----------------------------------------------------- | |
| -- FancySurvey Schema | |
| -- 02/26/15 14:53:47 | |
| -- Author: @c1v0 | |
| -- ----------------------------------------------------- | |
| -- ----------------------------------------------------- | |
| -- Table `users` | |
| -- ----------------------------------------------------- | |
| CREATE TABLE IF NOT EXISTS `users` ( |
| <?php for ($i = 0; $i < count($gamertags); $i++) : ?> | |
| <?php if ($i == 0 || $i % 5 == 0) : ?> | |
| <div class="row"> | |
| <?php endif; ?> | |
| <div class="medium-3 columns"> | |
| <div class="panel"> | |
| <div class="th" href="#"> | |
| <img src="<?php echo $gamertags[$i]['Platform']['thumbnail']; ?>"> | |
| </div> | |
| <h5> |
| <?php # /app/Model/AppModel.php | |
| /** | |
| * afterFind() override | |
| * | |
| * @param mixed $results | |
| * @param boolean $primary | |
| * @return mixed | |
| */ | |
| public function afterFind($results, $primary = false) { |
| <?php | |
| public function afterFind($results, $primary = false) { | |
| $html_fields = array('slider', 'social', 'body'); | |
| foreach ($html_fields as $needle) { | |
| foreach ($results as $key => $val) { | |
| if (isset($val['Content'][$needle])) { | |
| $results[$key]['Content'][$needle] = $this->_addBeautifyTag( | |
| $results[$key]['Content'][$needle] ); | |
| } | |
| } |
| <?php | |
| // Include Simple HTML Dom Parser | |
| require_once('simple_html_dom_parser.php'); | |
| /** | |
| * @author CJ Vogt <http://chrisvogt.me> | |
| * @uses simple_html_dom | |
| * @see http://simplehtmldom.sourceforge.net/manual.htm | |
| */ |
| <?php | |
| /** | |
| * API Settings Class | |
| * | |
| * @property string $username | |
| * @property string $password | |
| * @property string $endpoint | |
| * | |
| * @author C1V0 <[email protected]> | |
| */ |
| CREATE TABLE `adsum`.`states` ( | |
| `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT , | |
| `name` VARCHAR(50) NOT NULL , | |
| `abbreviation` CHAR(2) NOT NULL , | |
| PRIMARY KEY (`id`) ); | |
| INSERT INTO `states` (`id`,`name`,`abbreviation`) VALUES ('1','Alabama','AL'); | |
| INSERT INTO `states` (`id`,`name`,`abbreviation`) VALUES ('2','Alaska','AK'); | |
| INSERT INTO `states` (`id`,`name`,`abbreviation`) VALUES ('3','Arizona','AZ'); | |
| INSERT INTO `states` (`id`,`name`,`abbreviation`) VALUES ('4','Arkansas','AR'); |