Skip to content

Instantly share code, notes, and snippets.

View PCreations's full-sized avatar

Pierre Criulanscy PCreations

View GitHub Profile
@PCreations
PCreations / README.md
Last active March 21, 2016 09:36 — forked from nicerobot/README.md
Mac OS X uninstall script for packaged install of node.js

To run this, you can try:

curl -ks https://gist.githubusercontent.com/PCreations/6df8b04cbf68c10a9b3c/raw/445b87d1d4550b336353cec77720502fd6f42022/uninstall-node.sh | bash

I haven't tested this script doing it this way but i run a lot of my Gists like this so maybe this one'll work too.

Alternatively,

curl -ksO https://gist.githubusercontent.com/PCreations/6df8b04cbf68c10a9b3c/raw/445b87d1d4550b336353cec77720502fd6f42022/uninstall-node.sh

chmod +x ./uninstall-node.sh

@PCreations
PCreations / gist:39296bfe6db5925be663
Last active August 29, 2015 14:25
HyperlinkedNestedRelatedField
class HyperlinkedNestedRelatedField(HyperlinkedRelatedField):
def __init__(self, view_name, additional_reverse_kwargs, **kwargs):
super(HyperlinkedNestedRelatedField, self).__init__(
view_name,
read_only=True,
**kwargs
)
self.additional_reverse_kwargs = additional_reverse_kwargs
@PCreations
PCreations / youtube_controller.php
Created July 25, 2012 16:06 — forked from junichi11/youtube_controller.php
CakePHP Zend GData Youtube unlisted upload
<?php
class YoutubeController extends AppController{
public $name = 'Youtube';
public $uses = array();
public $layout = 'default';
public $components = array('Zend','Auth');
public function upload(){
$this->Zend->loadClass('Zend_Gdata_ClientLogin');