This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* @author=harshad joshi */ | |
package com.harshad.cellinfo2; | |
import android.os.Bundle; | |
import android.app.Activity; | |
import android.view.Menu; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A: | |
def __init__(self,a): | |
self.a=a | |
print self.a | |
def show(self): | |
print self.a | |
a=A(1) | |
a.show() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a=open("text1.txt","r") | |
b=[] | |
for i in a.readlines(): | |
b.append(i) | |
if b.__contains__("hello"): | |
print "Yes" | |
else: | |
print "No" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Full script used in blog post at http://h6o6.com/2013/03/using-python-and-the-nltk-to-find-haikus-in-the-public-twitter-stream | |
4-clause license (original "BSD License") | |
Copyright (c) 2013, h6o6 | |
All rights reserved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* this code is meant to run on MS DOS machines and uses bios bit setting to turn CAPS LOCK on or off */ | |
/* it contains far keyword, which is not used in gcc */ | |
#include <stdio.h> | |
void main() | |
{ | |
char *kb; | |
kb = (char *)0x417; | |
*kb = 64; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user@localhost:~$ telnet localhost 25 | |
Trying ::1... | |
Trying 127.0.0.1... | |
Connected to localhost. | |
Escape character is '^]'. | |
220 localhost ESMTP Postfix (Ubuntu) | |
mail from:root@localhost | |
250 2.1.0 Ok | |
rcpt to:harshad@localhost | |
250 2.1.5 Ok |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/time.h> | |
#include <sys/param.h> | |
#include <sys/ioctl.h> | |
#ifndef __USE_BSD | |
#define __USE_BSD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' Q B a s i c G o r i l l a s | |
' | |
' Copyright (C) IBM Corporation 1991 | |
' | |
' Your mission is to hit your opponent with the exploding banana |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 REM | |
20 PLAY "CDGFABC" | |
30 END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#(c) Harshad Joshi, 2011 | |
#firewalrus [AT] gmail DOT com | |
import sys | |
import tweepy | |
CONSUMER_KEY = '' | |
CONSUMER_SECRET = '' |