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
| <# | |
| Automates the handbrake CLI (such as it exists) so I can sic this script on a | |
| whole dir of mkvs and have them trimmed down, but with subtitles | |
| The raw command that works: | |
| flatpak run --command=HandBrakeCLI fr.handbrake.ghb ` | |
| --input '../The Good Place S02E04.mkv' ` | |
| --output 'The Good Place S0204.mkv' ` |
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
| var outcomes_health ; | |
| function filter_down(indata) { | |
| const cols = indata.columns; | |
| let values = {}; | |
| indata.columns.forEach(col => (values[col] = d3.map(indata, d => d[col]).keys())); | |
| outcomes_health = values['health_outcomes'] ; | |
| } | |
| async function get_values() { |
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
| * Translate service centers to facility codes. Translations change over time. ; | |
| data svc_facs ; | |
| input | |
| @1 svcctr $char3. | |
| @7 ctreffdt date9. | |
| @19 ctrtrmdt date9. | |
| @31 facility_code $char3. | |
| ; | |
| format ctr: mmddyy10. ; | |
| datalines ; |
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
| * Gimme 10 records of a random var. ; | |
| data fake_data ; | |
| do cnt = 1 to 10 ; | |
| randy = uniform(7376) ; | |
| output ; | |
| end ; | |
| keep randy ; | |
| run ; | |
| proc sort data = fake_data ; |
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
| screen mode id:i:2 | |
| use multimon:i:0 | |
| desktopwidth:i:1600 | |
| desktopheight:i:1200 | |
| session bpp:i:32 | |
| winposstr:s:0,1,0,0,1538,718 | |
| compression:i:1 | |
| keyboardhook:i:2 | |
| audiocapturemode:i:0 | |
| videoplaybackmode:i:1 |
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
| proc format ; | |
| value $sx | |
| "F" = "Girls" | |
| "M" = "Boys" | |
| ; | |
| value ag | |
| low - 12 = '12 and under' | |
| 13 - high = '13 and up' | |
| ; | |
| quit ; |
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
| require "win32ole" | |
| =begin | |
| Parsing strategy for unrolling the lists. | |
| lists are either CPTs or LOINCs | |
| CPTs are \d{5}. | |
| Loincs are \d{4,5}-\d | |
| Particular, problematic list is: |
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
| * Write db commands to the log. ; | |
| options | |
| fullstimer | |
| sastrace = ',,,d' | |
| sastraceloc = saslog | |
| ; | |
| %let my_server = EDW_PROD1 ; | |
| %let my_schema = SB_GHRI ; |
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
| /********************************************* | |
| * Roy Pardee | |
| * Group Health Research Institute | |
| * (206) 287-2078 | |
| * pardee.r@ghc.org | |
| * | |
| * C:\Users/pardre1/Desktop/deleteme.sas | |
| * | |
| * | |
| *********************************************/ |
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
| %macro limited_freq(inset = s.car_adm_f, var = , rowlim = 10) ; | |
| proc sql outobs = &rowlim nowarn ; | |
| create table topn as | |
| select &var, count(*) as frq | |
| from &inset | |
| group by &var | |
| order by 2 desc | |
| ; | |
| quit ; |
NewerOlder