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> | |
void main() | |
{ | |
int a[2][3]; | |
int (*p)[3]; | |
p = a; | |
int i,j,k; | |
printf("Enter elements of '2 x 3' array:\n"); | |
for(i=0;i<2;i++) |
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
from tkinter import * | |
import random | |
import datetime | |
def question_window(): | |
root = Toplevel(start_window) | |
root.geometry('2000x2000') | |
top_frame = Frame(root) |
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
""" CSC108 Assignment 3: Friend Finder - Main Program code """ | |
from typing import List | |
from network_functions import load_profiles, make_recommendations | |
def display_recommendations(potential_friends: List[str]) -> None: | |
"""Display the recommendations in potential_friends or a message | |
indicating that there are no recommendations. | |
""" |
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
import random | |
import sys | |
import time | |
def initialiseBoard(): | |
"""Set the grid dimensions according to the user. | |
Function returns grid_list containing the grid values. | |
Option to change the size of the board added. |
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
[WARNING][12:50:43] Implicit 'Default' section inheritance is deprecated. It will be removed soon. To silence this warning remove settings in the 'Default' section from your coafile. You can use dots to specify inheritance: the section 'all.python' will inherit all settings from 'all'. | |
Executing section LineLength... | |
Executing section CheckQuotation... | |
Executing section UnusedCode... | |
Executing section pep8... | |
Executing section SpaceCheck... | |
Executing section cli... |
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
from coalib.bearlib.languages.Language import Language | |
@Language | |
class Tcl: | |
aliases = 'Tcl/Tk', | |
versions = 8.0, 8.1, 8.2, 8.3, 8.4, 8.5, 8.6 | |
extensions = '.tcl', | |
comment_delimiter = '#' | |
string_delimiters = {'"': '"', '{': '}'} |
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
from coalib.bearlib.languages.Language import Language | |
@Language | |
class m4: | |
versions = 1.4, | |
extensions = '.m4', | |
comment_delimiter = '#' | |
multiline_comment_delimiters = {'/*': '*/'} | |
string_delimiters = {'`': "'", '"': '"'} |
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
from coalib.bearlib.languages.Language import Language | |
@Language | |
class VB: | |
aliases = 'vb', | |
versions = 14.0, 15.0 | |
extensions = '.vb', | |
comment_delimiter = "'" | |
string_delimiters = {'"': '"'} |
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
import os | |
directory = 'media/csvs/' | |
if not os.path.exists(directory): | |
os.makedirs(directory) |
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
from django.core.validators import ValidationError | |
try: | |
validate_email(email) | |
except ValidationError: | |
return Response({"status": "error", "message": "Provided email id is invalid."}) |
OlderNewer