Skip to content

Instantly share code, notes, and snippets.

View flockonus's full-sized avatar
🏯

Fabiano flockonus

🏯
View GitHub Profile
@flockonus
flockonus / dependencies.yml
Created June 1, 2012 20:16
serveFacebookAppTab.java
# Application dependencies
require:
- play 1.2.4
- play -> fbgraph 0.4
@flockonus
flockonus / gist:3020947
Created June 29, 2012 22:09
Friday talk about products and facebook tab
Website:
Product; user register product, he automatically gets ownership
-> add another field to product (user_creator_id?)
Products Management; after adding a product, or selecting one product via auto-complete the user gets to another screen where he can set configs for the product (edit screen).
-> make and/or sell, highlight, ecommerce link
-> some way to link a photo from product to the connection of seller/maker
Facebook Tab; should be customizable, at least caption.
@flockonus
flockonus / gist:3194245
Created July 28, 2012 18:17
RVM x Mac OS Mountain Lion
Last login: Sat Jul 28 10:50:09 on console
Fabianos-MacBook-Air:~ flockonus$ rvm install 1.9.2
Fetching yaml-0.1.4.tar.gz to /Users/flockonus/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/flockonus/.rvm/src
Configuring yaml in /Users/flockonus/.rvm/src/yaml-0.1.4.
Error running ' ./configure --prefix="/Users/flockonus/.rvm/usr" ', please read /Users/flockonus/.rvm/log/ruby-1.9.2-p320/yaml/configure.log
Compiling yaml in /Users/flockonus/.rvm/src/yaml-0.1.4.
Error running 'make ', please read /Users/flockonus/.rvm/log/ruby-1.9.2-p320/yaml/make.log
fabianops ~ $ npm install jitsu
npm WARN package.json [email protected] No README.md file found!
npm WARN package.json [email protected] No README.md file found!
npm http GET https://registry.npmjs.org/jitsu
npm http 304 https://registry.npmjs.org/jitsu
npm http GET https://registry.npmjs.org/colors/0.6.0-1
npm http GET https://registry.npmjs.org/complete/0.3.1
npm http GET https://registry.npmjs.org/dateformat/1.0.2-1.2.3
npm http GET https://registry.npmjs.org/flatiron/0.2.5
npm http GET https://registry.npmjs.org/flatiron-cli-config/0.1.3
@flockonus
flockonus / app.js
Created August 9, 2012 16:05
swig on express.js 3.0
/**
* Module dependencies.
*/
var express = require('express')
, routes = require('./routes')
, http = require('http')
, path = require('path')
// !
, swig = require('./config/consolidate-swig').swig
using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using System.Threading;
@flockonus
flockonus / login.coffee
Created March 1, 2013 19:13
A simple test implemented as TDD practices. Start with tests failing and work all the way until valid login
api = require('./helper').apiRequest()
assert = require('chai').assert
expect = require('chai').expect
credentials = require('./helper').userCredentials
describe 'POST /login', ->
it 'should respond 400 on empty credentials', (done) ->
api
.post('/login')
{
"status": "success",
"wine_ratings": [
{
"wine": {
"_id": "512dc3e42453895706000002",
"created_at": "2013-02-27T08:29:24.789Z",
"image_content_type": "image/jpeg",
"image_file_name": "medium.jpg",
"image_file_size": 2185,
{
"status": "success",
"wine_rating": {
"__v": 0,
"wine": {
"_id": "512dc3e42453895706000002",
"name": "14 Hands Merlot",
"year": "2007"
},
"open": true,
@flockonus
flockonus / fblogin.json
Last active December 15, 2015 00:39
login data
{
"__v": 17,
"_id": "514021f01119452123000001",
"authentication_token": "9b796a493ba73443fa777cb68bde200b8a349bf3351779397fdc50e87426eddd21533c4d02329750",
"birthday": "1983-12-24T08:00:00.000Z",
"current_city": "Vancouver",
"email": "[email protected]",
"fb_id": "123",
"fb_profile": {
"gender": "male",