I hereby claim:
- I am Daniel15 on github.
- I am daniel15 (https://keybase.io/daniel15) on keybase.
- I have a public key whose fingerprint is 78DC 765F 9EF3 08CC 0249 B136 C159 189E 8674 E211
To claim this, I am signing this object:
from gmusicapi import Mobileclient | |
api = Mobileclient() | |
api.login('[email protected]', 'hunter2') | |
playlist_contents = api.get_all_user_playlist_contents() | |
for playlist in playlist_contents: | |
playlist_tracks = playlist.get('tracks') | |
for pl_track in playlist_tracks: |
<?php | |
/** | |
* Simple autoloader for XHP in Laravel, when you don't want to use Composer's | |
* autoloader. To use: | |
* 1. Place this file somewhere in an autoloader-enabled directory of your | |
* Laravel installation (app/controllers is fine). | |
* 2. Modify `app/config/app.php` and add 'XHP\XHPServiceProvider' to the | |
* "Autoloaded Service Providers" section. | |
* | |
* More info on XHP in Laravel: http://dan.cx/2014/05/xhp-laravel |
accomplished | |
aggravated | |
alive | |
alone | |
amazed | |
amazing | |
amused | |
angry | |
annoyed | |
anxious |
{ | |
"name": "laravel/laravel", | |
"description": "The Laravel Framework.", | |
"keywords": ["framework", "laravel"], | |
"license": "MIT", | |
"require": { | |
"laravel/framework": "4.1.*", | |
"facebook/xhp": "dev-master" | |
}, | |
"autoload": { |
var Options = React.createClass({ | |
savePrice: function(price) { | |
localStorage.setItem("Price", price); | |
}, | |
_renderOptions: function() { | |
return this.props.data.map(function(option) { | |
return ( | |
<Option | |
price={option.price} |
I hereby claim:
To claim this, I am signing this object:
<?php | |
if ($utf8) { | |
if (function_exists('mb_strtolower')) { | |
$strtolower = function ($string) { return mb_strtolower($string); } | |
} else { | |
require_once($sourcedir . '/Subs-Charset.php'); | |
$strtolower = function ($string) { return utf8_strtolower($string); } | |
} | |
} else { |
[fcgi-program:mono] | |
command=/usr/local/bin/fastcgi-mono-server4 /applications=dan.cx:/:/var/www/dan.cx/site/ | |
user=www-data | |
socket=unix:///var/run/mono/mono.socket | |
socket_owner=www-data |
(function() { | |
var setLinearGradient; | |
// Figure out what prefix the current browser uses for gradients | |
var tempEl = new Element('div'); | |
tempEl.style.cssText = | |
'background-image: -moz-linear-gradient(top, red 0%, white 100%); \ | |
background-image: -webkit-linear-gradient(top, red 0%, white 100%); \ |
<?php | |
// Go home PHP, you're drunk. | |
// No charset here | |
$old_db = new PDO('mysql:host=localhost;dbname=database', 'username', 'password'); | |
$old_db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
// Charset here | |
$new_db = new PDO('mysql:charset=utf8mb4;host=localhost;dbname=database2', 'username', 'password'); | |
$new_db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); |