Skip to content

Instantly share code, notes, and snippets.

View CodeDotJS's full-sized avatar
💭
I may be slow to respond.

Rishi Giri CodeDotJS

💭
I may be slow to respond.
View GitHub Profile
import urllib2
import re
import os
from os.path import basename
from urlparse import urlsplit
from urlparse import urlparse
from posixpath import basename,dirname
def process_url(raw_url):
@CodeDotJS
CodeDotJS / SoundCloud Follower Count.markdown
Created November 16, 2015 08:35
SoundCloud Follower Count

SoundCloud Follower Count

Card that shows SoundCloud follower count using the SoundCloud REST API.

Does not update live.

A Pen by jczimm on CodePen.

License.

var textHolder = document.getElementsByTagName('div')[0],
text = textHolder.innerHTML,
chars = text.length,
newText = '',
i;
for (i = 0; i < chars; i += 1) {
newText += '<i>' + text.charAt(i) + '</i>';
}
@CodeDotJS
CodeDotJS / solar_system.py
Last active June 9, 2025 10:06
Solar System using Python
import turtle
import math
class SolarSystem:
def __init__(self, width, height):
self.thesun = None
self.planets = []
self.ssturtle = turtle.Turtle()
self.ssturtle.hideturtle()
self.ssscreen = turtle.Screen()
@CodeDotJS
CodeDotJS / index.html
Last active August 29, 2015 14:18
HTML5 Image Uploader
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>HTML5 Image Uploader</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="main">
<h1>Upload Your Images</h1>
@CodeDotJS
CodeDotJS / script.js
Last active August 29, 2015 14:15
turbine-in-move
var M = Math,
PI = M.PI,
TWOPI = PI * 2,
HALFPI = PI / 2,
canvas = document.createElement( 'canvas'),
ctx = canvas.getContext( '2d' ),
width = canvas.width = 1250,
height = canvas.height = 550,
cx = width / 2,
cy = height / 2,
@CodeDotJS
CodeDotJS / index.html
Created February 4, 2015 17:13
pvWYyR
<html>
<head>
<title>
JavaScript Game
</title>
<style type="text/css">
body{
background-color: teal;
position: fixed;
top: 0;
@CodeDotJS
CodeDotJS / index.html
Created December 8, 2014 14:18
yyepPW
<body>
<div class="git"><a href="https://rishi.pavakpaul.in"><img src="forkme.png" alt="" ></a></div>
<div class="drop-container"><div></div></div><div class="drop-container1"><div></div></div>
<div class="drop-container2"><div></div></div><div class="drop-container3"><div></div></div>
<div class="drop-container4"><div></div></div><div class="drop-container5"><div></div></div>
<div class="drop-container6"><div></div></div><div class="drop-container7"><div></div></div>
<div class="drop-container8"><div></div></div><div class="drop-container9"><div></div></div>
<div class="drop-container10"><div></div></div><div class="drop-container11"><div></div></div>
<div class="drop-container12"><div></div></div><div class="drop-container13"><div></div></div>
<div class="drop-container14"><div></div></div><div class="drop-container15"><div></div></div>