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
| #encoding:UTF-8 | |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'FasterCSV' | |
| require 'httparty' | |
| require 'json' | |
| require 'highline/import' | |
| def get_input(prompt="Enter >",show = true) |
Under Terminal > Preferences... > (Profile) > Advanced, "Declare terminal as:" should be set to xterm-256color.
This is easy with homebrew:
brew install screen
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
| Byobu Commands | |
| ============== | |
| byobu Screen manager | |
| Level 0 Commands (Quick Start) | |
| ------------------------------ | |
| <F2> Create a new window |
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
| //Copyright (c) 2011 ashelly.myopenid.com under <http://www.opensource.org/licenses/mit-license> | |
| #include <stdlib.h> | |
| //Customize for your data Item type | |
| typedef int Item; | |
| #define ItemLess(a,b) ((a)<(b)) | |
| #define ItemMean(a,b) (((a)+(b))/2) | |
| typedef struct Mediator_t |
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
| cSplit <- function(indt, splitCols, sep = ",", direction = "wide", | |
| makeEqual = NULL, fixed = TRUE, drop = TRUE, | |
| stripWhite = FALSE) { | |
| message("`cSplit` is now part of the 'splitstackshape' package (V1.4.0)") | |
| ## requires data.table >= 1.8.11 | |
| require(data.table) | |
| if (!is.data.table(indt)) setDT(indt) | |
| if (is.numeric(splitCols)) splitCols <- names(indt)[splitCols] | |
| if (any(!vapply(indt[, splitCols, with = FALSE], | |
| is.character, logical(1L)))) { |
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
| ### | |
| ### | |
| ### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
| ### https://christitus.com/windows-tool/ | |
| ### https://github.com/ChrisTitusTech/winutil | |
| ### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
| ### iwr -useb https://christitus.com/win | iex | |
| ### | |
| ### OR take a look at | |
| ### https://github.com/HotCakeX/Harden-Windows-Security |
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
| # load libraries -------------------------------------------------------------------- | |
| library(data.table) | |
| library(feather) | |
| # US Part D Drug prices 2013: 500 MB zip, 2.9 GB uncompressed ----------------------- | |
| pde_link <- "http://download.cms.gov/Research-Statistics-Data-and-Systems/Statistics-Trends-and-Reports/Medicare-Provider-Charge-Data/Downloads/PartD_Prescriber_PUF_NPI_DRUG_13.zip" | |
| tf <- tempfile() |
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
| DT1 <- data.table(x = 1:5) | |
| DT2 <- data.table(y = (1:5) + 0.01) | |
| setkey(DT1, x) | |
| setkey(DT2, y) | |
| # the following does not maintain both columns | |
| DT1[DT2, roll = 'nearest'] | |
| # x | |
| # 1: 1 | |
| # 2: 2 |
It is loaded by default by /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist.
If you run
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist
OlderNewer