Skip to content

Instantly share code, notes, and snippets.

View cderekw4224's full-sized avatar
💾

Derek Christensen cderekw4224

💾
View GitHub Profile
@dmcbane
dmcbane / README.md
Last active February 7, 2026 00:01
Setup Ubuntu for PIN login

Setup Ubuntu for PIN Login Instead of Long Password

  • Install packages if they aren't already installed.
sudo apt install libpam-pwdfile whois
  • Backup the Original PAM Configuration File
from datetime import date, datetime
import os
#defines the period under consideration
start_date = datetime(2020, 8, 17)
end_date = datetime.today()
#to caluclate the target hours, the vacation_days in the chosen time frame are needed
vacation_days = [date(2020, 8, 17),
date(2020, 8, 24),
@cderekw4224
cderekw4224 / 2019-avgPrec_CleanPrint_ALL.py
Created April 16, 2019 03:17
pyinstaller --onefile 2019-avgPrec_CleanPrint_ALL.py --> RecursionError: maximum recursion depth exceeded
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 13 09:50:32 2017
@author: Derek Christensen
The Vector Space Model: Implementation
HW 2
CIS 833 Information Retrieval and Text Mining
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html>
<head><meta charset="utf-8" />
<title>christensen_finalprj</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<style type="text/css">
/*!
@cderekw4224
cderekw4224 / slicing for rows
Created February 7, 2019 17:49
slicing for rows
'''
Python 2.7
How can I and/or why can't I slice for a specific row or range of rows?
See code lines & corresponding output below.
'''
print(type(freq_word_Corpus))
@lamalice
lamalice / ghc-advice.md
Last active September 25, 2018 21:20
I'm sharing these tips based off of my own personal experience at GHC 2017. I'm hoping these will help others prepare for their trip. :) I know I didn't have ANY preparation before hand, but this is what I made out of my trip. I hope you'll call your trip a success.
// Lab 2 – Week 2
/* Lab2LoopsArrays2.java
* Author: Derek Christensen
* Date: 20180425
*/
/** Lab2LoopsArrays2.java
PART 1:
Store and analyze Exam Scores, including:
- input
Output Payroll.java:
What is your name? Derek
How many hours did you work this week? 20
What is your hourly pay rate? 5
Hello, Derek
Your gross pay is $100.0
Output TextNextLineFlow.java with Line 33 commented out:
( //keyboard.nextLine(); //without this line program will not work)
@AsyncWizard
AsyncWizard / trello-md-code-highlight.js
Last active January 5, 2024 11:12
Trello markdown code syntax highlight.
// ==UserScript==
// @name Trello Syntax Highlight
// @namespace https://gist.github.com/AsyncWizard
// @version 0.1
// @description try to take over the world!
// @author AsyncWizard
// @require https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.11.0/highlight.min.js
// @resource https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.11.0/styles/github.min.css
// @match https://trello.com/*
// @grant none
@jdhitsolutions
jdhitsolutions / PSChristmasPrompt.ps1
Last active December 6, 2018 15:04
PowerShell Christmas Prompt
<#
display a colorful Christmas countdown prompt
[♫♪Christmas in 18.15:22:08֍♦] PS C:\>
This should work in the console with a True Type font and
the Powershell ISE
this prompt requires a TrueType font