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
/** | |
* Tweet by twitcurl | |
*/ | |
#include <iostream> | |
#include <string> | |
#include <twitcurl.h> | |
using namespace std; | |
/* |
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
## LOAD PACKAGE | |
library(dplyr) | |
## INPUT | |
input <- data.frame(president = c("A1", "A1", "A1", "A1", "A1", "A1", "A1"), | |
vice_president = c("B", "B", "B", "B", "C", "C", "C"), | |
manager = c("D", "D", "E", "E", "F", "G", "H"), | |
staff = c("I", "J", "K", "L", "M", "N", "O"), | |
qty_1 = c(1:7), |
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
# wk1-downloads | |
$wkVid1 = @("https://edx-video.net/PENPWJSX2017-V000500_DTH.mp4") | |
$vidNames = @("1.1-intro-www-internet.mp4") | |
$wkVid1 += "https://edx-video.net/PENPWJSX2017-V000500_DTH.mp4" | |
$vidNames += "1.2-how-webrowser-works.mp4" | |
$wkVid1 += "https://edx-video.net/PENPWJSX2017-V000100_DTH.mp4" |
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
# video-download.ps1 | |
# Takes an array of video URLs and downloads them into the working directory | |
# and renames them | |
function Get-EdxVideos { | |
param([string[]]$UrlArray, [string[]]$NewNames) | |
for ($i = 0; $i -lt $UrlArray.Length; $i++) { | |
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
# startup.ps1 | |
# Version of the file will download R v. 3.5.2 | |
$downloadUrl = "https://cloud.r-project.org/bin/windows/base/R-3.5.2-win.exe" | |
$executable = Split-Path $downloadUrl -Leaf | |
$downloadLoc = Join-Path -Path $home -ChildPath "Desktop" | |
$newPath = Join-Path $downloadLoc -ChildPath $executable | |
Start-BitsTransfer -Source $downloadUrl -Destination $newPath |
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
if (!requireNamespace('remotes')) | |
install.packages('remotes') | |
remotes::install_github('DevSolutionsLtd/ariseng') |
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
// Scoped and Unscoped Enumerations | |
#include <iostream> | |
#include <array> | |
#include <string_view> // C++ 17 | |
enum EShape | |
{ | |
eCircle, | |
eSquare, |
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
# mario.R | |
printCharInSeq <- function(char, num) { | |
for (n in seq_len(num)) { | |
cat(char) | |
} | |
} | |
prompt <- "Height: " |
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
# Converting Date Entries in a CSV file back to POSIX style (after being mucked up by MS Excel) | |
# Note: The first column is for Dates | |
Param( | |
[string]$file, | |
[switch]$Detailed | |
) | |
$tempfile = New-TemporaryFile |
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
if (!requireNamespace("remotes")) | |
install.packages("remotes", repos = "https://cran.rstudio.com") | |
remotes::install_github("DevSolutionsLtd/AriseNg/ariseng") | |
library(ariseng) | |
fetch_settings() | |
fetch_dependencies() | |
DataEntry::DataEntry() |
OlderNewer