Skip to content

Instantly share code, notes, and snippets.

View kristjanmik's full-sized avatar

Kristján Ingi Mikaelsson kristjanmik

View GitHub Profile
@kristjanmik
kristjanmik / gist:5130899
Created March 10, 2013 23:02
Instagram code on nfvi.is
(function($){
$.fn.instagram = function(options) {
var that = this,
apiEndpoint = "https://api.instagram.com/v1",
settings = {
hash: null
, userId: null
, locationId: null
, search: null
, accessToken: null
function formWarning(text,tab){
if(tab == 'location' && !mapTabLoaded){
loadMap();
mapTabLoaded = true;
}
var warning = '<div class="alert">'+
'<button type="button" class="close" data-dismiss="alert">&times;</button>'+
'<strong>ATH!</strong> '+text+
'</div>';
$('.submit-warning').html(warning);
@kristjanmik
kristjanmik / nodejitsu error
Created December 8, 2012 13:07
nodejitsu error
➜ apis git:(master) ✗ jitsu deploy
info: Welcome to Nodejitsu ylgur
info: jitsu v0.10.3-1, node v0.8.1
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in server.js
info: Creating snapshot 0.0.0-44
info Uploading: [============================ ] 97%
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
@kristjanmik
kristjanmik / problem
Created December 6, 2012 18:04
Problem with jitsu deploy
prompt: Is this ok?: (yes)
info: Creating snapshot 0.0.0-37
info Uploading: [=== ] 12%
info: Updating app skyscraper
info: Activating snapshot 0.0.0-37 for skyscraper
info: Starting app skyscraper
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy the app
error: