Skip to content

Instantly share code, notes, and snippets.

text = raw_input("Enter a text ")
textsplit = text.split()
count = len(textsplit)
print "The word count is = " + str(count)
a=600851475143
i=2
while i<a :
if a%i==0:
a1=a/i
else :
i+=1
continue
n=2
dsfsdf
past = 0
cur = 1
next = 1
sum = 0
while next < 4000000:
next = cur + past
past = cur
cur = next
; Gist support
(require 'gist)
import math
def is_prime(n):
for i in range(2, int(math.sqrt(n)) + 1):
if n % i == 0:
return False
return True
cur_no = 1
count = 0
while count < 10001:

Spicing up Cheese - Sexier Form and More Function

Goals of the Project

The aim of this project is to make Cheese sexier than it is right now. ["It should help its users get laid"][1]. This can be accomplished with a slicker UI and a few more features.

Motivation

While Cheese is an easy to use webcam application, it lacks a bit in the coolness department. There are only a limited set of effects, and no live preview. You can't make cool pictures without having to resort to GIMP or Photoshop. I'd like Cheese to be a one-stop cool picture production factory - Take a shot, picking one of several effects shown live to you, and directly post to wherever the user would like to show off (flickr, Facebook, etc).

#include <stdio.h>
#define PAGE_SIZE 100
#define PAGE_TABLE_SIZE 128
struct pentry
{
int no;
int start_addr;
} ptable[PAGE_TABLE_SIZE];
# PROTOTYPE CODE
# ANYONE USING THIS WILL BE SHOT
import sys
import time
from ConfigParser import SafeConfigParser
import pygst
pygst.require("0.10")
using Gst;
using GLib;
MainLoop loop;
private bool bus_callback(Bus bus, Message message)
{
switch(message.type)
{
case MessageType.ERROR: