I hereby claim:
- I am blacksmithop on github.
- I am blacksmithop (https://keybase.io/blacksmithop) on keybase.
- I have a public key ASBuWejMzpZk8vQ4xQ36WZDOfeSjPTP4PDuNZw1yygZquQo
To claim this, I am signing this object:
class Map(dict): | |
""" | |
Example: | |
m = Map({'first_name': 'Eduardo'}, last_name='Pool', age=24, sports=['Soccer']) | |
""" | |
def __init__(self, *args, **kwargs): | |
self.update(*args,**kwargs) | |
if kwargs: | |
for k, v in kwargs.items(): |
I hereby claim:
To claim this, I am signing this object:
from discord.ext import commands | |
from discord import Status, Game | |
from discord.errors import LoginFailure | |
bot = commands.Bot(command_prefix="?") | |
@bot.listen('on_ready') | |
async def bot_is_ready(): | |
print(f"Logged in as: {bot.user}") | |
await bot.change_presence(status=Status.online, activity=Game(f"{bot.command_prefix}help")) |
import sqlite3 | |
from pprint import pprint | |
class DB: | |
def __init__(self): | |
self.con = sqlite3.connect('newdb.db') | |
self.cur = self.con.cursor() | |
def view_table(self): | |
self.cur.execute("Select * from NEW") |
#include <stdio.h> | |
#include <string.h> | |
void main(){ | |
char icode[10][30], str[30], opr[30]; | |
int i=0; | |
printf("Enter Intermediate Code (terminated by exit):\n"); | |
do{ | |
scanf("%s", icode[i]); |
It is the task of taking an image described in a vector graphics format (shapes) and converting it into a raster image (a series of pixels, dots or lines, which, when displayed together, create the image which was represented via shapes). The rasterised image may then be displayed on a computer display, video display or printer, or stored in a bitmap file format. Rasterisation may refer to the technique of drawing 3D models, or the conversion of 2D rendering primitives such as polygons, line segments into a rasterized format.
#include <stdio.h> | |
char input[100]; | |
int i; | |
int T(); | |
int F(); | |
int TP(); | |
int EP(); | |
int E() | |
{ |
%{ | |
#include "y.tab.h" | |
//extern char * yytext | |
%} | |
%% | |
[0-9]+ {return digit;} | |
[a-z]+ {return id;} | |
[\t] ; | |
[\n] {return 0;} | |
. {return yytext[0];} |
%{ | |
/* Definition section */ | |
#include<stdio.h> | |
int yylex(); | |
void yyerror(); | |
%} | |
%token NUMBER ID | |
// setting the precedence | |
// and associativity of operators |
%{ | |
/* Definition section */ | |
#include<stdio.h> | |
#include "y.tab.h" | |
extern int yylval; | |
%} | |
/* Rule Section */ | |
%% | |
[0-9]+ { |