I hereby claim:
- I am alairock on github.
- I am alairock (https://keybase.io/alairock) on keybase.
- I have a public key ASBhALIeRnQkHI9MccUghiVQ9kCz14yoViFb1wNaXWrA-go
To claim this, I am signing this object:
| WITH RECURSIVE file_depth | |
| AS ( | |
| SELECT | |
| id, | |
| parent_folder_id, | |
| 1 AS depth | |
| FROM files | |
| WHERE files.parent_folder_id = '0' | |
| UNION |
| import base64 | |
| import os | |
| import rsa | |
| def load_priv_key(path): | |
| path = os.path.join(os.path.dirname(__file__), path) | |
| with open(path, mode='rb') as privatefile: | |
| keydata = privatefile.read() | |
| return rsa.PrivateKey.load_pkcs1(keydata) |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| $usersQuery = \App\User::query(); | |
| $usersQuery->where('type', '=', 'client'); | |
| foreach(generate($usersQuery) as $user) { | |
| // Do something with that user | |
| } |
| <?php | |
| Route::get('/stripetoken', function() | |
| { | |
| $client = new \GuzzleHttp\Client(); | |
| $pubKey = 'pk_test_xxxxxxxxxxxxx'; | |
| $cardNumber = "4242424242424242"; | |
| $cvc = "123"; | |
| $expMonth = "11"; | |
| $expYear = "2018"; |
| // this is the background code... | |
| // listen for our browerAction to be clicked | |
| chrome.browserAction.onClicked.addListener(function (tab) { | |
| // for the current tab, inject the "inject.js" file & execute it | |
| chrome.tabs.executeScript(tab.ib, { | |
| file: 'inject.js' | |
| }); | |
| }); |
| /* | |
| * Your Stylesheet | |
| * | |
| * This stylesheet is loaded when Atom starts up and is reloaded automatically | |
| * when it is changed. | |
| * | |
| * If you are unfamiliar with LESS, you can read more about it here: | |
| * http://www.lesscss.org | |
| */ |
| /** | |
| * Main JS file for Casper behaviours | |
| */ | |
| $(document).ready(function(){ | |
| var lastScrollTop = 0; | |
| $(window).scroll(function(event){ | |
| var st = $(this).scrollTop(); | |
| var scrolli = st/1.5; | |
| scrollicious = $(".cover-image > img").css({"top": scrolli + "px"}); | |
| if (st > lastScrollTop){ |
| <?php | |
| //Place the following line above the class: | |
| //App::import('Vendor', 'OAuth/OAuthClient'); | |
| //OAuth component found here: http://code.42dh.com/oauth/ | |
| public function index() { | |
| $data = array( | |
| 'AccessToken' => $this->Session->read('access_token'), | |
| 'Usernames' => array('alairock'), |