n | x | y | z |
---|---|---|---|
0 | 0 | 0 | 0 |
1 | 0 | 0 | 1 |
2 | 0 | 1 | 1 |
3 | 1 | 1 | 1 |
6 | -1 | -1 | 2 |
7 | 0 | -1 | 2 |
8 | 0 | 0 | 2 |
9 | 0 | 1 | 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
/** | |
* Comsats CourseWare Inbrowser Scrapper | |
* | |
* @license | |
* Copyright (c) 2018 Nauman Umer | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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
wget "https://www.bing.com$(curl -s "https://www.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1" |\ | |
python3 -c "import sys, json; print(json.loads(sys.stdin.read())['images'][0]['url'])")" -O ./images/background.jpg -q | |
gsettings set org.gnome.desktop.background picture-uri ./images/background.jpg |
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
class McqParser { | |
getQuestionNode(doc) { | |
return doc.querySelector('.question_box>h3>p'); | |
} | |
getOption(labelEl) { | |
return new McqChoice( | |
labelEl.innerHTML, | |
labelEl.title |
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
class TabularParser { | |
getNthCol(row, n) { | |
return row.querySelector(`td:nth-child(${n})`); | |
} | |
getNthColText(row, n) { | |
return this.getNthCol(row, n).innerText; | |
} |
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
var handlers = { | |
"GetAttemptedQuizDetails": detailPageHandler, | |
"PopulateSingleQuiz": McqPageHandler, | |
} | |
String.prototype.hashCode = function () { | |
var hash = 0, i, chr; | |
if (this.length === 0) return hash; | |
for (i = 0; i < this.length; i++) { | |
chr = this.charCodeAt(i); |
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
class McqParser { | |
getQuestionNode(doc) { | |
return doc.querySelector('.question_box>h3>p'); | |
} | |
getOption(labelEl) { | |
return new McqChoice( | |
labelEl.innerHTML, | |
labelEl.title |
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
import argparse | |
import calendar | |
import re | |
import pdfplumber | |
class TableCell: | |
def __init__(self, rect, text): | |
self.left = rect[0] |
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
String[] words = {"that", "this", "with", "from", "your", "have", "more", "will", "home", "page", "free", "time", "they", "site", "what", "news", "only", "when", "here", "also", "help", "view", "been", "were", "some", "like", "than", "find", "date", "back", "list", "name", "just", "over", "year", "into", "next", "used", "work", "last", "most", "data", "make", "them", "post", "city", "such", "best", "then", "good", "well", "info", "high", "each", "very", "book", "read", "need", "many", "user", "said", "does", "mail", "full", "life", "know", "days", "part", "real", "item", "ebay", "must", "made", "line", "send", "type", "take", "area", "want", "long", "code", "show", "even", "much", "sign", "file", "link", "open", "case", "same", "both", "game", "care", "down", "size", "shop", "text", "rate", "form", "love", "john", "main", "call", "save", "york", "card", "jobs", "food", "sale", "teen", "room", "join", "west", "look", "left", "team", "week", "note", "live", "june", "plan", "cost", "july", "test", "come", "cart" |
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 strict"; | |
class GpaService { | |
constructor() { | |
this.s1Weight = 10; | |
this.s2Weight = 15; | |
this.finalWeight = 50; | |
this.quizWeight = 15; | |
this.assignWeight = 10; | |
} | |
calcTotal(entity) { |
OlderNewer