Skip to content

Instantly share code, notes, and snippets.

Tell us about your experience with computers and web programming. *

Hi,

My name is Daniel, I am a Ruby on Rails and Ember web developer. I have been working with web applications since I was doing my bachelor degree. At that time I was implementing platforms to support education because I was part of a research group at my University.

For more than three years, I have been working as a freelancer using mostly Ruby on Rails and Ember. At the beginning, I was involved with several projects, most of them related with platforms to support the agriculture and grocery industries.

I care deeply about education, so I am constantly picking projects that align with this passion. Nowadays I work on an online education platform that supports people in using design thinking to further their work.

import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Component.extend({
click() {
alert('will not run');
},
object: {
attribute: 'value'
},
attributeBindings: ['id'],

Keybase proof

I hereby claim:

  • I am patcoll on github.
  • I am patcoll (https://keybase.io/patcoll) on keybase.
  • I have a public key whose fingerprint is 440C 9946 B7C6 D95E 66B9 AF79 CD15 A5E4 D60B 08AD

To claim this, I am signing this object:

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import "fmt"
// Send the sequence 2, 3, 4, ... to channel 'ch'.
func generate(ch chan int) {
@patcoll
patcoll / app.conf
Created December 7, 2012 02:26
node.js as a system web service with upstart
description "app"
start on filesystem
stop on runlevel S
respawn
env PORT=3002
env APP_USER=app
# @TODO: put NODE_ENV here
env NODE_PATH=/usr/local/lib/node_modules
// I wanted a proof-of-concept for streaming binary data from a MongoDB document with Mongoose.
// I'm using express as web framework here but you should be able to pipe to anything that expects a stream.
// Based on https://gist.github.com/1403797
//// [ other express app stuff... ]
app.get('/files/:file', function(req, res, next) {
var queryfileId = req.params.file;
var GrabBinaryForField = require('./streamformatters').GrabBinaryForField;
// "buffer" is the field on my model that stores the binary data
#define SYNC_INTERVAL 60
@interface AppDelegate : NSObject <UIApplicationDelegate> {
// ...
NSMutableDictionary *mocs;
NSMutableDictionary *mocThreads;
// ...
}
@property (nonatomic, retain) NSMutableDictionary *mocs;
@property (nonatomic, retain) NSMutableDictionary *mocThreads;
@patcoll
patcoll / copy_zf_files.sh
Created April 13, 2011 15:26
Copy only certain Zend Framework libs and their dependencies into a specified directory
#!/bin/bash
#
# Copy only certain Zend Framework libs and their dependencies into a specified directory.
#
# This script was created because copying the entire Zend Framework into an existing project
# is not really necessary if you only want to use part of it. However you fall into dependency
# hell because most sub-libraries use multi-purpose libs like Zend_Exception and Zend_Validate.
#
# Put this script in a fresh copy of ZF's `library` folder and run it as follows:
#
#!/bin/bash
# installs latest PHPUnit
# use sudo if necessary
pear upgrade PEAR # newest phpunit needs pear 1.9.2
pear channel-discover components.ez.no
pear channel-discover pear.symfony-project.com
pear channel-discover pear.phpunit.de
pear install phpunit/PHPUnit