Before starting this, the first thing you need to do is make sure your Windows build is up to date enough.
- Open "Settings" -> "About"
- Scroll to "Windows Specification"
- Make sure OS build is 16215 or higher.
- Run PowerShell as an administrator
#!/bin/bash | |
cd $1 | |
while read -r dir; do | |
cd $(pwd)"/"$dir | |
while read -r file; do | |
mv $(pwd)"/"$file $OLDPWD"/"$file | |
done < <(ls -l | grep -Pi "IMG_\d{4}.(MOV|JPG|PNG)" -o) |
/* | |
GitHub default | |
*/ | |
*{margin:0;padding:0;} | |
body { | |
font:13.34px helvetica,arial,freesans,clean,sans-serif; | |
color:black; | |
line-height:1.4em; | |
background-color: #F8F8F8; | |
padding: 0.7em; |
Ruby 4 hrs 59 mins ████████████░░░░░░░░░ 57.2% | |
TypeScript 3 hrs 25 mins ████████▏░░░░░░░░░░░░ 39.2% | |
Org-mode 15 mins ▌░░░░░░░░░░░░░░░░░░░░ 3.0% | |
Emacs Lisp 2 mins ░░░░░░░░░░░░░░░░░░░░░ 0.6% | |
JSON 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.1% |
(defun new-sym (s1 s2) | |
(intern (concatenate 'string (string-upcase (string s1)) (string-upcase (string s2))))) | |
(defun make-key (str) | |
(values (intern (string-upcase str) "KEYWORD"))) | |
(defun dup-and-key (rows) | |
(let ((data '())) | |
(loop for row in rows do | |
(setf data (cons row data)) |
Dear Concordia University,
I am writing to you on behalf of the Concordia student body regarding the final exams and the decision to use online proctoring. We are urging you to change your decision about having online proctored exams. For many, this is an appalling invasion of privacy, a security risk, a demand for students to trade their morals for a grade, and discrimination against the less fortunate among the student body. In addition, over 7000 thousand Concordia students are against online proctoring.
<?php | |
/** | |
* Purpose: | |
* This class provides and easy to use API for accessing databases with a single | |
* method call. Create a DB connection, then run queries against that single | |
* connection easily. | |
* | |
* Attributes: | |
* - $host: string | |
* - $user: string |
NOTE: As a heads up, I will not be adding to this gist anymore. I've written more detailed instructions for each language on the COMP-348 website, and you can find a lot more help on that website than what's available here.
For Prolog, I highly recommend just using an online editor.
This editor allows you to do everything you would do by downloading a local Prolog environment, while giving you a likely more comfortable user interface than the terminal. It's very easy to use, when you open it up, you'll see a page that looks like this:
Simply click on the Program
button, and you'll be brought to a small text editor. On the left hand side is where you put all your facts and rules. For example, copy-paste this into the left-hand side:
.exe | |
.App | |
.dll | |
.exe~ | |
.zip | |
.gzip | |
.tar | |
.tgz | |
.tar.xz | |
.tar.gz |
; Challenge from a friend: | |
; | |
; - Read a file of text | |
; - determine the n most frequently used words | |
; - print out a sorted list of those words along with their frequencies) | |
(-> filename | |
(slurp) | |
(lower-case) | |
(clojure.string/replace #"\d" "") |