Skip to content

Instantly share code, notes, and snippets.

View devpruthvi's full-sized avatar
🎯
Focusing

Pruthvi Raj devpruthvi

🎯
Focusing
View GitHub Profile
import pyfiglet
from termcolor import cprint
import sys,random
f,t = '',''
fonts = list(pyfiglet.FigletFont.getFonts())
if sys.argv[-1] in fonts:
f = sys.argv[-1]
t = sys.argv[1:-1]
else:
f = random.choice(fonts)
import pyfiglet
import sys,random
f,t = '',''
ts = list(pyfiglet.FigletFont.getFonts())
if sys.argv[-1] in ts:
t = sys.argv[-1]
f = sys.argv[1:-1]
else:
t = random.choice(ts)
f = sys.argv[1:]
#include<stdio.h>
#include<malloc.h>
#include<string.h>
#define MAX_INPUTS 10
#define MAX_INPUT_SIZE 5
#define MAX_STATES 20
#define MAX_STATE_SIZE 5
#define MAX_ID_SIZE 100
int get_id(char str[], char str_arr[][MAX_STATE_SIZE], int len)
{
#include<stdio.h>
#include<malloc.h>
#include<string.h>
#define MAX_INPUTS 10
#define MAX_INPUT_SIZE 5
#define MAX_STATES 20
#define MAX_STATE_SIZE 5
#define MAX_ID_SIZE 100
int get_id(char str[], char str_arr[][MAX_STATE_SIZE], int len)
{
#include<stdio.h>
#include<malloc.h>
#include<string.h>
#define MAX_INPUTS 10
#define MAX_INPUT_SIZE 5
#define MAX_STATES 20
#define MAX_STATE_SIZE 5
#define MAX_ID_SIZE 100
int get_id(char str[], char str_arr[][MAX_STATE_SIZE], int len)
{
#include <regex.h>
#include<stdio.h>
int main(int arg, char * argv[])
{
regex_t regex;
int reti;
char msgbuf[100];
reti = regcomp(&regex, "^[01]*1[01][01]$", 0);
if (reti) {
#include<stdio.h>
#include<malloc.h>
#include<string.h>
#define MAX_INPUTS 10
#define MAX_INPUT_SIZE 5
#define MAX_STATES 20
#define MAX_STATE_SIZE 5
#define MAX_ID_SIZE 100
int get_id(char str[], char str_arr[][MAX_STATE_SIZE], int len)
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <string.h>
/* Define an array of transitions to sort. */
int transtablecount;
char id[100];
struct transition
{
const char curstate[7];
str = '[quote][quote]Hi[/quote] Hello[/quote]';
regexp = /\[quote\](.*)\[\/quote\]/;
while(str.indexOf('[quote]') != -1)
{
str = str.replace(regexp,'<div class="quote">$1</div>');
}
document.writeln(str);
package temp;
import java.applet.Applet;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.Random;
public class temp extends Applet