Skip to content

Instantly share code, notes, and snippets.

Gideon Israel Dsouza gideondsouza

Block or report user

Report or block gideondsouza

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 form_multiple.erb
<title>Image Upload</title>
<link rel="stylesheet" type="text/css" href="uploadify.css" />
<script type="text/javascript" src=""></script>
<script type="text/javascript" src="jquery.uploadify.min.js"></script>
<h1>Upload Images</h1>
View img_mgr.rb
require 'sinatra'
get '/' do
erb :form_multiple
post '/upload' do
#this method will get as ajax call for every file uploaded
@filename = params[:Filename]
file = params[:Filedata][:tempfile]
View show_image.erb
<title>Show Image</title>
<h1>See Image</h1>
<img src="<%= @filename %>" />
View form.erb
<title>Image Upload</title>
<h1>Upload Image</h1>
<form action="/save_image" method="POST" enctype="multipart/form-data">
<input type="file" name="file">
<input type="submit" value="Upload image">
View img_mgr.rb
require 'sinatra'
get "/" do
erb :form
post '/save_image' do
@filename = params[:file][:filename]
file = params[:file][:tempfile]
gideondsouza / $uj.js
Created Feb 20, 2015
Javascript Basic code
View $uj.js
window.$uj = function(fn)
if (window.addEventListener)
window.addEventListener("load", fn, false);
else if (window.attachEvent) {
window.attachEvent("onload", fn);
View bochsout.txt
00000000000i[ ] Bochs x86 Emulator 2.6.2.svn
00000000000i[ ] Built from SVN snapshot after release 2.6.2
00000000000i[ ] Compiled on Oct 17 2013 at 20:19:45
00000000000i[ ] System configuration
00000000000i[ ] processors: 1 (cores=1, HT threads=1)
00000000000i[ ] A20 line support: yes
00000000000i[ ] IPS is set to 1000001
00000000000i[ ] CPU configuration
00000000000i[ ] SMP support: no
00000000000i[ ] level: 6
gideondsouza /
Created Oct 20, 2013
elegant perl quick sort
use strict;
use warnings;
use v5.10;
sub sort_
my @xs = @_;
if(scalar(@xs) == 0) {return ();}
my @lesser = sort_(grep { $_ < $xs[0] } @xs);
my @greater = sort_(grep { $_ > $xs[0] } @xs);
Gideons-Mac-mini:compiler gideon$ g++ -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS=1 -o parser parser.cpp tokens.cpp main.cpp
Undefined symbols for architecture x86_64:
"_LLVMLinkInJIT", referenced from:
(anonymous namespace)::ForceJITLinking::ForceJITLinking()in ccax3uOX.o
"CodeGenContext::generateCode(NBlock&)", referenced from:
_main in ccax3uOX.o
"CodeGenContext::runCode()", referenced from:
_main in ccax3uOX.o
"llvm::getGlobalContext()", referenced from:
CodeGenContext::CodeGenContext()in ccax3uOX.o
gideondsouza / 0001-Updated-known_pod_issues-by-running-.-perl-podcheck..patch
Created Oct 3, 2013
View 0001-Updated-known_pod_issues-by-running-.-perl-podcheck..patch
From d233e024722a0d05ce9d70eeeaaffa0517579ea2 Mon Sep 17 00:00:00 2001
From: Gideon Israel Dsouza <>
Date: Wed, 2 Oct 2013 21:12:21 +0530
Subject: [PATCH 1/3] Updated known_pod_issues by running ./perl podcheck.t
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------ (Apple Git-37)"
This is a multi-part message in MIME format.
-------------- (Apple Git-37)
You can’t perform that action at this time.