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
library(dslabs) | |
library(dplyr) | |
library(lubridate) | |
library(caret) | |
data("reported_heights") | |
dat <- | |
mutate(reported_heights, date_time = ymd_hms(time_stamp)) %>% | |
filter(date_time >= make_date(2016, 01, 25) & |
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
# comp-check1.R | |
library(tidyverse) | |
library(MASS) | |
library(caret) | |
set.seed(1) | |
Sigma <- 9 * matrix(c(1, 0.5, 0.5, 1), 2, 2) | |
dat <- mvrnorm(n = 100, c(69, 69), Sigma = Sigma) %>% | |
data.frame() %>% |
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
##################### | |
# # | |
# Lists # | |
# # | |
##################### | |
# Note that the function arguments used in this sample script are rather verbose | |
# just to enhance your understanding. You DO NOT always need to specify arguments. | |
## We MAY first of all create components: |
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, |
OlderNewer