Skip to content

Instantly share code, notes, and snippets.

guiomie

Block or report user

Report or block guiomie

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am guiomie on github.
  • I am guiomie (https://keybase.io/guiomie) on keybase.
  • I have a public key ASBzCVKNw1uLZkpeFNVwrTVuTGmRZkmeTX_rKN6HtWmXGwo

To claim this, I am signing this object:

@guiomie
guiomie / gist:8264440
Created Jan 5, 2014
Robbies loop test
View gist:8264440
function IsSubstractionZero(x, y){
var substraction = y - x;
if(substraction === 0){
return false;
}
return true;
}
var x = 0;
var y = 6;
View gist:2016768
app.configure(function(){
app.use(express.static(__dirname + '/public'));
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.cookieParser());
app.use(express.session({secret: cookieSecret}));
app.use(everyauth.middleware());
app.use(express.favicon());
});
@guiomie
guiomie / gist:1398124
Created Nov 27, 2011
Everyauth oauth error: Error: {"error":{"message":"Missing redirect_uri parameter.","type":"OAuthException"}}
View gist:1398124
var fbId= ""; // provided by facebook
var fbSecret= ""; // provided by facebook
var fbCallbackAddress= "/signin"; // this could point to your /signin page
var mongoHQadress = '';
var mongoHQuser = '';
var mongoHQpassword = '';
var cookieSecret = "co";
var express= require('express');
var everyauth= require('everyauth');
View gist:1396895
var express= require('express');
var Promise = everyauth.Promise;
everyauth.helpExpress(app);
everyauth.facebook
.appId(fbId)
.appSecret(fbSecret)
.logoutPath('/logout')
.logoutRedirectPath('/')
.handleAuthCallbackError( function (req, res) {
@guiomie
guiomie / gist:1352079
Created Nov 9, 2011
Save in Mongoose has unexpected behavior
View gist:1352079
var saveEvent = function(eventObject, userId, ref, callback){
var theEvent = new CalendarEvent();
theEvent.title = eventObject.title;
theEvent.allDay = eventObject.allDay;
theEvent.start = eventObject.start;
theEvent.end = eventObject.end;
theEvent.url = "empty";
theEvent.color = eventObject.color;
@guiomie
guiomie / gist:1307787
Created Oct 23, 2011
smartmachine deploy erro
View gist:1307787
Counting objects: 10, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 685 bytes, done.
Total 6 (delta 4), reused 0 (delta 0)
remote: Deploying node-service.
remote: revision: 3b1dbf806500f56d5954010bcc559b02266c11bc
remote: timestamp: 2011-10-23T19-36-49.040696340
remote: Installing node module deps (from package.json).
@guiomie
guiomie / gist:1307728
Created Oct 23, 2011
Is this an invalid package.json ?
View gist:1307728
{ "name": "test",
"version": "0.1.3",
"dependencies":
{
"express": "2.4.7",
"everyauth": "0.2.23",
"mongoose": "2.3.6"
}
}
@guiomie
guiomie / gist:1307544
Created Oct 23, 2011
node-service-deploy with all modules npm uninstalled -g
View gist:1307544
Deploying node-service.
revision: master
timestamp: 2011-10-23T16-16-54.342441619
Installing node module deps (from package.json).
npm WARN invalid config node-version="v0.4"
> express@2.4.7 test /home/node/node-service/releases/2011-10-23T16-16-54.342441619/node_modules/express
> make test
@guiomie
guiomie / gist:1307532
Created Oct 23, 2011
npm config ls on joyenr smartmachine
View gist:1307532
; userconfig /home/node/.npmrc
link = true
prefix = "/home/node/local"
tmp = "/home/node/.tmp"
; node install prefix = /opt/nodejs/v0.4
; node bin location = /opt/nodejs/v0.4/bin/node
; cwd = /home/node/node-service/releases/2011-10-23T15-38-27.419110651/node_modules/mongoose/node_modules/mongodb
; HOME = /home/node
; 'npm config ls -l' to show all defaults.
You can’t perform that action at this time.