Skip to content

Instantly share code, notes, and snippets.

View damz's full-sized avatar

Damien Tournoud damz

  • Platform.sh
View GitHub Profile

Keybase proof

I hereby claim:

  • I am damz on github.
  • I am damz (https://keybase.io/damz) on keybase.
  • I have a public key whose fingerprint is A815 B953 8DB5 7563 ACED 2E4C A327 B902 67CB 8EC2

To claim this, I am signing this object:

@damz
damz / -
Created December 3, 2013 10:31
diff --git a/platform_foundation/container/apis/slug.py b/platform_foundation/container/apis/slug.py
index 4b069a4..77490e9 100644
--- a/platform_foundation/container/apis/slug.py
+++ b/platform_foundation/container/apis/slug.py
@@ -14,30 +14,27 @@ class SlugApi(object):
self._slugs = slugs
@rpcmethod
- def upload(self, name, path):
+ def upload(self, project_name, branch_name, commit_id, path):
@damz
damz / gist:5442890
Created April 23, 2013 11:38
You have to love casual developers.
$propertyid=$data->nid;
if($propertyid<10){
$propertyid="0000000".$propertyid;
}elseif($propertyid<100){
$propertyid="000000".$propertyid;
}elseif($propertyid<1000){
$propertyid="00000".$propertyid;
}elseif($propertyid<10000){
$propertyid="0000".$propertyid;
}elseif($propertyid<100000){
/**
* Make a CCK field read-only on form edition.
*
* @param $form
* The form, from hook_form_alter().
* @param $field_name
* The name of the field to make read-only.
*/
function readonly_field(&$form, $field_name) {
if (empty($form[$field_name])) {