-
- Create events for Potluck / Nepali night ^^Everest+Sandesh (13th/14th Jan)^^
- Hall booking for Nepali Night ^^Everest+Sandesh (After meeting with Sarah: ?Next weekend)^^
- Apply for Funding for Nepali Night ^^Peshal+Srijana^^ Jan end
- Financial Breakdown for funding application ^^Karuna+Srijana^^ Jan 20/21
- Reach out to Alumni for Donations ^^Usha+karuna+Aman^^ Feb Mid samma
- Reach out to Community for performances and volunteering (Interest forms) ^^Upama+Karuna+Usha^^ March start samma
- Student Involvement desk
- Up for self nomination
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 <iostream> | |
#include <vector> | |
#include <chrono> | |
#include <cstdlib> | |
int lower_bound(int needle, std::vector<int> haystack) { | |
int l = 0, r = haystack.size() - 1; | |
while (l < r) | |
{ | |
int m = (l + r) / 2; |
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
cmake_minimum_required(VERSION "3.30") | |
project(cv) | |
set(OPENCV_SUBMODULE_DIR "vendor/opencv") | |
set(OPENCV_BUILD_DIR "${OPENCV_SUBMODULE_DIR}/build") | |
set(OPENCV_REPO "https://github.com/opencv/opencv.git") | |
# Check if vendor/opencv exists. If not, clone it. | |
if (NOT EXISTS "${OPENCV_SUBMODULE_DIR}") | |
message(STATUS "Cloning OpenCV into ${OPENCV_SUBMODULE_DIR}") |
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
use core::panic; | |
use std::{iter::Peekable, str::Chars}; | |
#[derive(Debug, thiserror::Error)] | |
pub enum LexerError { | |
#[error("Input stream ended suddenly")] | |
EndOfInput, | |
#[error("Partially matched input: Matched .0, unmatched .1")] | |
PartiallyMatchedInput(Vec<Token>, String), |
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
use std::collections::BTreeMap; | |
use std::time::Instant; | |
use cranelift::prelude::{types, AbiParam, FunctionBuilder, FunctionBuilderContext, InstBuilder}; | |
use cranelift::{ | |
jit::{JITBuilder, JITModule}, | |
module::{Linkage, Module}, | |
}; | |
use fasteval::Compiler; | |
use fasteval::Evaler; |
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
use std::{ | |
future::Future, | |
io::{Error, Read, Write}, | |
net::UdpSocket, | |
}; | |
use anyhow::Result; | |
use async_channel::{Receiver, Sender}; | |
use serde::{Deserialize, Serialize}; | |
use tokio::{select, task::JoinHandle}; |
-
- 3.2: Factors that impact workdays
- Vast research body available.
- human aspects are left out generally - liike job satisfaction (which is general fulfilment - influenced by good and bad workdays)
- affective states impact the assessment of a good and bad workday
- Positive affective state => Positive effect on problem solving skills and productivity
- Previous work -> +ve emotion = good workday. Hope is a mediator. Positive emotions at work increase openness to new experiences, dedication, work engagement.
-
Sheldon et al have further shown that on good days, students feel they have higher levels of autonomy and competence which reulsts in better outcomes.
- 3.2: Factors that impact workdays
- What does "students" mean in this case?
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
grid = [[-1] * 5 for i in range(0, 4)] | |
grid[0][2] = -100000 | |
grid[0][4] = 1000 | |
grid[1][2] = -100000 | |
grid[3][3] = -100 | |
final_states = [ | |
(0, 2), | |
(0, 4), |
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
from typing import * | |
class State(object): | |
''' | |
Terminal states do not change their values | |
''' | |
def __init__(self, id: int, value: int, transitions: List[int], is_terminal: bool) -> None: | |
self.id = id | |
self.value = value | |
self.transitions = transitions |
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
use scan_fmt::{scan_fmt}; | |
use std::{fs::File, io:: {BufRead, BufReader}}; | |
fn main(){ | |
let file_path : String = String::from("src/input.txt"); | |
let bufreader = BufReader::new(File::open(file_path).expect("Could not open file")); | |
let correct_passwords = bufreader.lines().map(|_line| { | |
match scan_fmt!(&_line.unwrap(), "{}-{} {}: {}" , i32, i32, char, String) { | |
Ok((a, b, c, d)) => { | |
if a <= d.chars().map(|k| { if c == k {1} else {0} } ).sum::<i32>() && b>= d.chars().map(|k| { if c == k {1} else {0} } ).sum::<i32>() { | |
1 |
NewerOlder