This file contains hidden or 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
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) |
This file contains hidden or 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
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:] |
This file contains hidden or 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<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) | |
{ |
This file contains hidden or 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<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) | |
{ |
This file contains hidden or 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<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) | |
{ |
This file contains hidden or 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 <regex.h> | |
#include<stdio.h> | |
int main(int arg, char * argv[]) | |
{ | |
regex_t regex; | |
int reti; | |
char msgbuf[100]; | |
reti = regcomp(®ex, "^[01]*1[01][01]$", 0); | |
if (reti) { |
This file contains hidden or 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<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) |
This file contains hidden or 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 <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]; |
This file contains hidden or 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
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); |
This file contains hidden or 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
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 |