Skip to content

Instantly share code, notes, and snippets.

@yuvipanda
yuvipanda / README.md
Last active Jun 14, 2021 — forked from jtpio/README.md
RetroLab recentish (check hash) + RTC
View README.md

RetroLab 0.3.0a2 on Binder

RetroLab

View gist:5665449
(function() {
var notices = {
WiknicUS:
{
begin: '7 May 2013 00:00 UTC',
end: '23 June 2013 00:00 UTC',
country: 'US',
text: "Join the [[Wikipedia:Wiknic|Great American Wiknic]], a Wiki-Picnic being celebrated in 10+ US cities around June 22!"
},
View gist:3361873
/*jslint white:true, vars:true, browser: true */
/*global mw, $ */
//
// Helper Functions
//
mw.activeCampaigns = mw.activeCampaigns || {};
mw.activeCampaigns.PEF = {
View Dijk.c
#include<stdio.h>
#define infi 999
int mat[20][20], dist[20], path[20];
int n,i,j;
int q[100];
int front=-1, rear=-1;
int isempty()
View Hash.c
#include<stdio.h>
#include<stdlib.h>
#define size 10
int a[size],num,r=7;
int index;
struct node
{
int data;
View irclogger.py
#!/usr/bin/python
# IRC Logger.
# By Shashi Gowda <http://identi.ca/shashi>.
import sys
import socket
import time
import os
View json-format.l
// Lex program to pretty-format json file. ***WARNING-Amateurish***
%{
int string=0;
int gi=0;
void indent(int i);
int prev_close=0;
%}
%%
\\\" { //Matching an escaped double quote
View colorspaceconvertor.c
// Author: Unkown
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<stdlib.h>
void main()
{
int gd=DETECT,gm,n;
float r=0,g=0,b=0;
float y=0,i=0,q=0;
View projecteuler_prob_3.py
a=600851475143
i=2
while i<a :
if a%i==0:
a1=a/i
else :
i+=1
continue
n=2
View wordcount.py
text = raw_input("Enter a text ")
textsplit = text.split()
count = len(textsplit)
print "The word count is = " + str(count)