Skip to content

Instantly share code, notes, and snippets.

View jajoosam's full-sized avatar

Samarth Jajoo jajoosam

View GitHub Profile

Chhota

Means small, in Hindi

Chhota is a front end url shortener without the need for a Database.\

It runs a sort of mirror on http://goo.gl, and uses the # to keep the process completely on the front end.

Install it on your site with just one line in your index.html -

``

#bla bla x blaz

@jajoosam
jajoosam / chhota.js
Last active October 8, 2017 04:58
chhota.js
console.log("hi");
if(location.hash.slice(1).substr(0,1) == "$"){
link = location.hash.slice(1).substr(1);
window.location = "https://goo.gl/" + link;
}
@jajoosam
jajoosam / glitchy-404-page.markdown
Created August 19, 2017 06:51
Glitchy 404 Page

Glitchy 404 Page

A glitchy 404 page I made for fun. (Thanks everyone for viewing this! This is my most viewed pen so far.)

Update: Re-added the static. Changed page to file.

(I don't know where the image is from)

@jajoosam
jajoosam / index.html
Created August 18, 2017 15:18
Libert Search
<div class="wrap">
<h1>Libert 📖</h1>
<form id="form">
<div class="search">
<input type="text" class="searchTerm" id="lolz" placeholder="What are you looking for?">
<button type="submit" class="searchButton" onclick="search()">
<i class="fa fa-search"></i>
</button>
</form>
</div>
@jajoosam
jajoosam / keybase.md
Created June 16, 2017 16:30
Keybase Verification

Keybase proof

I hereby claim:

  • I am jajoosam on github.
  • I am jajoosam (https://keybase.io/jajoosam) on keybase.
  • I have a public key ASD4u2dS5r0N1DU7pxWhYEVWp-tm02RUqYjYpyOjZUrbIQo

To claim this, I am signing this object:

@jajoosam
jajoosam / SonicTry.rb
Created March 21, 2017 16:26
My first track created using SonicPi. 18 seconds of retro game music. Or something like it.
2.times do
3.times do
use_synth :dull_bell
play 80
play 90
sleep 0.5
use_synth :prophet
play 60
sleep 0.5
end
function sortedSearch(listy, x) {
var start = 0;
var end = listy.length-1;
var index = Math.round((end+start)/2);
var i = 0;
while (listy[index] != x && i<listy.length/2) {
if(x<listy[index]){
end = index;
}
function Round(n,p){
n = n.toString();
var z;
var impo;
var impi;
var imp;
for (i=0; i>n.length;i++){
if(n.charAt(i) == '.'){
z = i+1;
break;
var limit = 4000000;
var a = 1;
var b = 1;
var sum = 0;
while(b < limit){
if (b % 2 === 0){
sum += b;
}
h = a+b;
a = b;