- URL: /category/
- @params: -
- @return: categories [object]
GET /category/
function Queue () { | |
if(!(this instanceof Queue)) return new Queue(); | |
} | |
Queue.prototype.push = function push(e) { | |
return this._q.unshift(e); | |
}; | |
Queue.prototype.shift = function shift() { | |
return this._q.pop(); |
var zlib = require('zlib'); | |
var util = require('util'); | |
var fs = require('fs'); | |
var stream = require('stream'); | |
var async = require('async'); | |
function FileStream (transform, encoding) { | |
stream.Stream.apply(this); |
$ make | |
cancer_wm.c: In function ‘main’: | |
cancer_wm.c:29:5: warning: ISO C90 forbids mixed declarations and code [-pedantic] | |
cancer_wm.c:33:18: warning: assignment makes integer from pointer without a cast [enabled by default] | |
cancer_wm.c:213:17: warning: enumeration value ‘_’ not handled in switch [-Wswitch] | |
cancer_wm.c:259:30: warning: assignment makes integer from pointer without a cast [enabled by default] | |
cancer_wm.c:285:55: warning: ‘start.button’ may be used uninitialized in this function [-Wmaybe-uninitialized] | |
cancer_wm.c:283:19: warning: ‘start.y_root’ may be used uninitialized in this function [-Wmaybe-uninitialized] | |
cancer_wm.c:282:19: warning: ‘start.x_root’ may be used uninitialized in this function [-Wmaybe-uninitialized] | |
cancer_wm.c:153:29: warning: ‘*((void *)&order+4)’ may be used uninitialized in this function [-Wmaybe-uninitialized] |
SELECT DISTINCT `mediacenter_media`.* | |
FROM `mediacenter_media` | |
WHERE ( `mediacenter_media`.`id` IN ((SELECT `mediacenter_media`.`id` | |
FROM `mediacenter_media` | |
INNER JOIN `media_file` | |
ON `media_file`.`id` = | |
`mediacenter_media`.`media_id` | |
LEFT JOIN `media_tag_file` | |
ON `media_tag_file`.`file_id` = | |
`media_file`.`id` |
<?php | |
class Search_Bootstrap extends Centurion_Application_Module_Bootstrap | |
{ | |
protected function _initSignals() | |
{ | |
Centurion_Signal::factory('post_delete')->connect(array($this, 'postDeleteRow'), 'Centurion_Db_Table_Row_Abstract'); | |
} |
#!/usr/bin/env node | |
// installer les packages `format` et `irc` depuis npm | |
var chan = '#zftalk-fr' | |
var irc = require('irc'); | |
var format = require('format'); | |
var client = new irc.Client('irc.freenode.net', 'BiduleChose', { |
npm info it worked if it ends with ok | |
npm info using [email protected] | |
npm info using [email protected] | |
npm WARN [email protected] package.json: bugs['web'] should probably be bugs['url'] | |
npm info preinstall [email protected] | |
Setting srcdir to : /home/floby/dev/node/gui | |
Setting blddir to : /home/floby/dev/node/gui/build | |
Checking for program g++ or c++ : /usr/bin/g++ | |
Checking for program cpp : /usr/bin/cpp | |
Checking for program ar : /usr/bin/ar |
info it worked if it ends with ok | |
verbose cli [ 'node', '/usr/local/bin/npm', 'update', '-g' ] | |
info using [email protected] | |
info using [email protected] | |
verbose config file /home/floby/.npmrc | |
verbose config file /usr/local/etc/npmrc | |
silly testEngine { name: 'meme', | |
silly testEngine description: 'a CLI utility to generate memes using memegenerator.net', | |
silly testEngine keywords: [ 'meme', 'cli' ], | |
silly testEngine version: '0.1.2', |
var fs = require('fs'); | |
var child_process = require('child_process'); | |
var spawn = child_process.spawn; | |
function openEditor(file) { | |
var cp = spawn(process.env.EDITOR, [file], { | |
customFds: [ | |
process.stdin, | |
process.stdout, | |
process.stderr |