Skip to content

Instantly share code, notes, and snippets.

View SamsadSajid's full-sized avatar

SamsadSajid

View GitHub Profile
Executing produce method
Recieved message The world itself's
Job "The world itself's" produced by worker 0
Message "The world itself's" is consumed by consumer 0 from worker 0
Recieved message just one big hoax.
Job "just one big hoax." produced by worker 0
Message "just one big hoax." is consumed by consumer 0 from worker 0
Recieved message
Recieved message
Found quit command
!apt-get install -y -qq software-properties-common python-software-properties module-init-tools
!add-apt-repository -y ppa:alessandro-strada/ppa 2>&1 > /dev/null
!apt-get update -qq 2>&1 > /dev/null
!apt-get -y install -qq google-drive-ocamlfuse fuse
from google.colab import auth
auth.authenticate_user()
from oauth2client.client import GoogleCredentials
creds = GoogleCredentials.get_application_default()
// denotes the Solidity compiler version
pragma solidity ^0.4.17;
contract Lottery {
// "address" is a datatype
// see the slides for details
address public manager;
address[] public players;
// "msg" is global object. You can use it from any function you create inside a contract.
import heapq
from collections import deque
import math
import numpy as np
import pandas as pd
import Queue as Q
import networkx as nx
def heuristic(a, b):
## laravel_project.conf
NameVirtualHost *:8080
Listen 8080
<VirtualHost *:8080>
ServerAdmin admin@example.com
ServerName laravel.dev
ServerAlias www.laravel.dev
DocumentRoot /home/user/projects/laravel_project/public
@SamsadSajid
SamsadSajid / ContractDefinition.sol
Last active May 16, 2018 13:40
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.17;
contract Inbox {
string public message;
function Inbox(string initialMessage) public {
message = initialMessage;
}
%------------------------------------------------------------
% Edited by Sajid Samsad
% 1405118, Dept of CSE, BUET
%------------------------------------------------------------
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage{utopia} %font utopia imported
\usepackage{physics}
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>FunderPrenuer</title>
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> -->
<!-- <link rel="stylesheet" type="text/css" href="font-awesome.min.css"> -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.8/css/solid.css" integrity="sha384-v2Tw72dyUXeU3y4aM2Y0tBJQkGfplr39mxZqlTBDUZAb9BGoC40+rdFCG0m10lXk" crossorigin="anonymous">
def add_product(request):
user = request.user
product_list = ProductList()
if request.method == 'POST':
print ('yoo')
form = ProductForm(request.POST, request.FILES)
print ('yoo')
print (form)
if form.is_valid():
print ('yoo')