Skip to content

Instantly share code, notes, and snippets.

@yuvipanda
yuvipanda / README.md
Last active June 14, 2021 19:06 — forked from jtpio/README.md
RetroLab recentish (check hash) + RTC

RetroLab 0.3.0a2 on Binder

RetroLab

@yuvipanda
yuvipanda / gist:5665449
Last active December 17, 2015 20:09 — forked from filbertkm/gist:5665443
(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!"
},
/*jslint white:true, vars:true, browser: true */
/*global mw, $ */
//
// Helper Functions
//
mw.activeCampaigns = mw.activeCampaigns || {};
mw.activeCampaigns.PEF = {
@yuvipanda
yuvipanda / Dijk.c
Created October 4, 2010 04:53 — forked from anonymous/Dijk
#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()
@yuvipanda
yuvipanda / Hash.c
Created October 4, 2010 03:32 — forked from anonymous/Hash
#include<stdio.h>
#include<stdlib.h>
#define size 10
int a[size],num,r=7;
int index;
struct node
{
int data;
#!/usr/bin/python
# IRC Logger.
# By Shashi Gowda <http://identi.ca/shashi>.
import sys
import socket
import time
import os
// 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
// 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;
a=600851475143
i=2
while i<a :
if a%i==0:
a1=a/i
else :
i+=1
continue
n=2
text = raw_input("Enter a text ")
textsplit = text.split()
count = len(textsplit)
print "The word count is = " + str(count)