This file contains hidden or 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 | |
require 'ConfigFactory.php'; | |
require 'OAuthRequest.php'; | |
$c = new Creds(); | |
$creds = $c->creds(); | |
$links = $c->links(); | |
$accessTokenData = getAccessToken($links, $creds); | |
This file contains hidden or 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
<form id="payment-info" action="/submit-payment"> | |
<input type="text" data-recurly="number"> | |
<input type="text" data-recurly="cvv"> | |
<input type="text" data-recurly="month"> | |
<input type="text" data-recurly="year"> | |
<input type="text" data-recurly="first_name"> | |
<input type="text" data-recurly="last_name"> | |
<input type="text" data-recurly="address1"> | |
<input type="text" data-recurly="address2"> |
This file contains hidden or 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
<HTML><HEAD> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<SCRIPT type="text/javascript" src="https://js.stripe.com/v1/"></SCRIPT> | |
<SCRIPT > | |
Stripe.setPublishableKey('<Stripe Public Key Here>'); | |
function formSubmit() { | |
if(validatePage() == true) { | |
$('.submit-button').attr("disabled", "disabled"); | |
$("#processing").html("Processing credit card..."); |
This file contains hidden or 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
#include <iostream> | |
#include <fstream> | |
#include <unordered_set> | |
#include <set> | |
#include <chrono> | |
using namespace std; | |
int main() | |
{ |
This file contains hidden or 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
flickr |
This file contains hidden or 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 AnythingButPhpFilterSimple extends FilterIterator { | |
protected $exclude = array( | |
'.svn', | |
'_lib', | |
'test', | |
// 'client', | |
'components' |
This file contains hidden or 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
################# | |
## Eclipse | |
################# | |
*.pydevproject | |
.project | |
.metadata | |
bin/ | |
tmp/ | |
*.tmp |
This file contains hidden or 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
SELECT n.title, SUM(w.count) as total | |
FROM project_usage_week_release w | |
INNER JOIN field_data_field_release_project r ON w.nid = r.entity_id | |
INNER JOIN node n ON n.nid = r.field_release_project_target_id | |
INNER JOIN | |
field_data_field_release_version v ON v.entity_id = r.entity_id | |
WHERE LEFT(v.field_release_version_value, 3) = '7.x' | |
AND FROM_UNIXTIME(w.timestamp) BETWEEN CURDATE()-INTERVAL 2 WEEK AND CURDATE() | |
GROUP BY n.title | |
ORDER BY total DESC; |
This file contains hidden or 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
<!-- | |
=========================================================================== | |
ANT News Bot | |
=========================================================================== | |
Sample files are provided below. | |
Folder structure: | |
/ | |
/ant | |
/ant/ant-contrib (external ant lib) |
This file contains hidden or 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
#cloud-config | |
write_files: | |
- path: /etc/aws.conf | |
owner: root | |
content: | | |
[Global] | |
- path: /opt/bin/consume-tokens.sh | |
owner: root | |
permissions: 0755 |