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
Found [57] videos when using playlistItems.list API, and [58] videos when using search.list API for channel [UC7_YxT-KID8kRbqZo7MyscQ] | |
Videos in playlistItems.list but not in search.list: [] | |
Videos in search.list but not in playlistItems.list: [M9PE5V_jGwE] | |
Found [13] videos when using playlistItems.list API, and [13] videos when using search.list API for channel [UCKqH_9mk1waLgBiL2vT5b9g] | |
Videos in playlistItems.list but not in search.list: [] | |
Videos in search.list but not in playlistItems.list: [] | |
Found [43] videos when using playlistItems.list API, and [43] videos when using search.list API for channel [UCMxYQX1zaepCgmiSmwbT39w] | |
Videos in playlistItems.list but not in search.list: [] | |
Videos in search.list but not in playlistItems.list: [] | |
Found [21] videos when using playlistItems.list API, and [21] videos when using search.list API for channel [UC-iNzkiXFbRr_l-lq9MVy7w] |
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
Product.relations = { | |
'comments': { | |
'type': 'hasMany', | |
'model': 'Comment', | |
'foreignKey': 'product_id' | |
}, | |
'tags': { | |
'type': 'hasManyAndBelongsTo', | |
'model': 'Tag', | |
'through': 'ProductTag', |
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
describe('Watch input type', function() { | |
it('should update models when changed to gte type', function() { | |
$scope.form.input = ['1']; | |
compileDirective(); | |
expect(ctrl.versionType).toBe('equal'); | |
expect(ctrl.versionGteInput).toBe(null); | |
ctrl.versionType = 'gte'; | |
$scope.$digest(); |
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
function login(username, password, callback) { | |
verifyUsername(username, function(error, valid) { | |
if (error) return callback(error); | |
if (!valid) return callback('invalid username'); | |
verifyPassword(password, function(error, valid) { | |
if (error) return callback(error); | |
if (!valid) return callback('invalid password'); | |
call(null, true); | |
}); | |
}); |
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 | |
Yii::setPathOfAlias('Predis', '/usr/share/php/Predis'); | |
Yii::setPathOfAlias('Archive', realpath(dirname(__FILE__).'/../../../archive')); | |
Yii::setPathOfAlias('art-cache', realpath(dirname(__FILE__).'/../../art/')); | |
require_once("facebook.php"); | |
return array( | |
'params'=>array( | |
'env' => 'dev', | |
'google_analytic' => 'UA-31325000-1', |
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
convert -size 256x256 -fill 'rgb(241, 240, 238)' -draw 'rectangle 0,0,32,32' -draw 'rectangle 0,64,32,96' -draw 'rectangle 0,128,32,160' -draw 'rectangle 0,192,32,224' -draw 'rectangle 32,32,64,64' -draw 'rectangle 32,96,64,128' -draw 'rectangle 32,160,64,192' -draw 'rectangle 32,224,64,256' -draw 'rectangle 64,0,96,32' -draw 'rectangle 64,64,96,96' -draw 'rectangle 64,128,96,160' -draw 'rectangle 64,192,96,224' -draw 'rectangle 96,32,128,64' -draw 'rectangle 96,96,128,128' -draw 'rectangle 96,160,128,192' -draw 'rectangle 96,224,128,256' -draw 'rectangle 128,0,160,32' -draw 'rectangle 128,64,160,96' -draw 'rectangle 128,128,160,160' -draw 'rectangle 128,192,160,224' -draw 'rectangle 160,32,192,64' -draw 'rectangle 160,96,192,128' -draw 'rectangle 160,160,192,192' -draw 'rectangle 160,224,192,256' -draw 'rectangle 192,0,224,32' -draw 'rectangle 192,64,224,96' -draw 'rectangle 192,128,224,160' -draw 'rectangle 192,192,224,224' -draw 'rectangle 224,32,256,64' -draw 'rectangle 224,96,256,128' -draw 'rectangle 22 |
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
convert -size 256x256 -fill 'rgb(241, 240, 238)' -draw 'rectangle 0,0,32,32' -draw 'rectangle 0,64,32,96' -draw 'rectangle 0,128,32,160' -draw 'rectangle 0,192,32,224' -draw 'rectangle 32,32,64,64' -draw 'rectangle 32,96,64,128' -draw 'rectangle 32,160,64,192' -draw 'rectangle 32,224,64,256' -draw 'rectangle 64,0,96,32' -draw 'rectangle 64,64,96,96' -draw 'rectangle 64,128,96,160' -draw 'rectangle 64,192,96,224' -draw 'rectangle 96,32,128,64' -draw 'rectangle 96,96,128,128' -draw 'rectangle 96,160,128,192' -draw 'rectangle 96,224,128,256' -draw 'rectangle 128,0,160,32' -draw 'rectangle 128,64,160,96' -draw 'rectangle 128,128,160,160' -draw 'rectangle 128,192,160,224' -draw 'rectangle 160,32,192,64' -draw 'rectangle 160,96,192,128' -draw 'rectangle 160,160,192,192' -draw 'rectangle 160,224,192,256' -draw 'rectangle 192,0,224,32' -draw 'rectangle 192,64,224,96' -draw 'rectangle 192,128,224,160' -draw 'rectangle 192,192,224,224' -draw 'rectangle 224,32,256,64' -draw 'rectangle 224,96,256,128' -draw 'rectangle 22 |
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
var client = bayeux.getClient() | |
, channelKeyPrefix = "room:"; | |
bayeux.bind('subscribe', function(clientId, channel){ | |
redisClient.incr(channelKeyPrefix + channel, function(error, value){ | |
client.publish(channel, { | |
event: 'user-change', | |
params: { | |
onlineUsers: value | |
} |
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 | |
// Pagination details | |
$iDisplayStart = $_GET['iDisplayStart']; | |
$iDisplayLength = $_GET['iDisplayLength']; | |
// Table columns | |
$iColumns = $_GET['iColumns']; | |
$sColumns = $_GET['sColumns']; | |
$sColumns = explode(',', $sColumns); |
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
Column | Type | Modifiers | |
---------+-----------------------------+------------------------------------------------------ | |
id | integer | not null default nextval('comment_id_seq'::regclass) | |
user_id | integer | not null | |
post_id | integer | not null | |
content | text | not null | |
created | timestamp without time zone | not null default now() |
NewerOlder