-
Box collection
-
Paper uploading
- Done
-
Email
-
FY question paper, analysis.
-
Box placement
- FY done by monday
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
#!/data/data/com.termux/files/usr/bin/bash | |
cd $(dirname $0) | |
## unset LD_PRELOAD in case termux-exec is installed | |
unset LD_PRELOAD | |
command="proot" | |
command+=" --link2symlink" | |
command+=" -0" | |
command+=" -r ubuntu-fs" | |
if [ -n "$(ls -A ubuntu-binds)" ]; then | |
for f in ubuntu-binds/* ;do |
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
# question 1 | |
from random import randint, seed | |
def disp_fraction(f: list): | |
return f"{' ' if f[0] == 0 else f[0]} {f[1]}/{f[2]}" | |
def main(ans: tuple[int, int, int]): | |
opts = [] |
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 itertools import permutations, combinations_with_replacement | |
def and_g(a: bool, b: bool) -> bool: | |
return a and b | |
def or_g(a: bool, b: bool) -> bool: | |
return a or b | |
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
sudo apt-get install build-essential git wget libssl-dev libreadline-dev libncurses5-dev zlib1g-dev m4 curl wx-common libwxgtk3.0-dev autoconf libxml2-utils xsltproc fop unixodbc unixodbc-bin unixodbc-dev | |
# installation of asdf | |
cd | |
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.7.4 | |
# For Ubuntu or other linux distros | |
echo '. $HOME/.asdf/asdf.sh' >> ~/.bashrc | |
echo '. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc |
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
# Run with | |
# $ iex primes.ex | |
# > Client.start | |
defmodule Primes do | |
def is_prime(n) when n == 2 or n == 1 do | |
true | |
end | |
def is_prime(n) when n > 2 do |
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
final_val = Enum.reduce([10, 22, 84], 0, fn(x, acc) -> x + acc end) | |
# acc takes the value of the return of function passed to Enum.reduce | |
# `here fn(x,acc) -> x + acc` is the function | |
# 1 | |
# fn(10, 0) returns 10 | |
# 2 | |
# fn(22, 10) returns 32 | |
# 3 | |
# fn(84, 32) returns 116 |
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> | |
// array based stack | |
// stack has a size | |
// it has a end element pointer. That is pretty much it | |
typedef enum { F, T } boolean; | |
typedef struct stack { |
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
let reconnects = 0; | |
let socket; | |
function connectWebsocket(url) { | |
socket = new WebSocket(url); | |
socket.onmessage = function onmessage_callback(message) { | |
// recieve messages here | |
}; | |
socket.onopen = function onopen_callback() { | |
console.log("Connected to: " + socket.url); |
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
const express = require('express'); | |
const multer = require('multer'); | |
const cors = require('cors'); | |
// const sqlite3 = require("sqlite3").verbose(); | |
const axios = require('axios'); | |
const app = express(); | |
app.use(cors()); | |
// app.use(express.static("uploads")); |
OlderNewer