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
Abhinav (9410200787) | |
Haider Ali (9027517849) | |
Prateek Jain (9456213922) | |
Roshan Sharma (8266966965) |
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
MINIMAL TOOL NAMES | |
git, npm, yarn, preload, sublime-text-3, numpy, pandas, matplotlib, scipy | |
INSTALLATIONS: | |
sudo apt update | |
sudo apt install git | |
sudo apt install preload | |
sudo apt install npm |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script src="./vue.js"></script> | |
<title>Document</title> | |
</head> | |
<body> | |
<div id="app"> |
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
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
// ======================= | |
// The structs' definition | |
// ======================= |
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
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
// ======================= | |
// The structs' definition | |
// ======================= |
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
function placeOrder(user) { | |
var order; | |
order.buyer = user; | |
order.itemName = 'Raspberry Pi'; | |
order.itemPrice = 2500; | |
order.isConfirm = true; | |
return order; | |
} | |
var person = { | |
name: 'John', |
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
var crypto = require("crypto"); | |
var algorithm = "aes-192-cbc"; | |
var password = "Store this password in a .env file!"; | |
const key = crypto.scryptSync(password, 'salt', 24); | |
var text = "secret message"; | |
const iv = crypto.randomBytes(16); // different each time | |
const cipher = crypto.createCipheriv(algorithm, key, iv); |
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
#!/usr/bin/env/python | |
# | |
# More of a reference of using jinaj2 without actual template files. | |
# This is great for a simple output transformation to standard out. | |
# | |
# Of course you will need to "sudo pip install jinja2" first! | |
# | |
# I like to refer to the following to remember how to use jinja2 :) | |
# http://jinja.pocoo.org/docs/templates/ | |
# |
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
using System; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
using System.Windows.Automation; | |
using System.Windows.Forms; | |
namespace NudgeApp { | |
class ChromeTabBlocker { | |
[DllImport("user32.dll")] | |
public static extern int SetForegroundWindow(IntPtr hWnd); |
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 { useLayoutEffect, useState } from 'react' | |
const SECONDS = 0.6 | |
export default function Game() { | |
const [x, setX] = useState(0) | |
const [y, setY] = useState(0) | |
const [score, setScore] = useState(0) | |
// Change coordinates every N seconds |
OlderNewer