#+CATEGORIES[]: programming #+tags[]: type type-system higher-order-type covariant contravariant invariant variances
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
| net stop spooler | |
| del %systemroot%\System32\spool\printers\* /Q | |
| net start spooler |
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
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| use Carp; | |
| use IPC::Open2; | |
| # use DDP; | |
| sub escape_html { |
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
| ImFontAtlas_AddFontFromFileTTF(ioptr->Fonts, | |
| "DOSSaemmul.ttf", 16.0f, | |
| NULL, | |
| ImFontAtlas_GetGlyphRangesKorean(ioptr->Fonts)); |
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
| aws s3 ls files-dev --recursive >> s3-dev-ls.txt | |
| aws s3 ls files-storage --recursive >> s3-prod-ls.txt |
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
| // https://dev.to/webeleon/unit-testing-nestjs-with-mongo-in-memory-54gd | |
| // npm i --save-dev mongodb-memory-server | |
| import { MongooseModule, MongooseModuleOptions } from '@nestjs/mongoose'; | |
| import { MongoMemoryServer } from 'mongodb-memory-server'; | |
| let mongod: MongoMemoryServer; |
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
| (parenscript:ps | |
| (paren6:defclass6 (big-thing) | |
| (defun constructor (size) nil)) | |
| (setf (ps:@ big-thing targets) | |
| '("foo" "bar")) | |
| ) | |
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
| http://karpathy.github.io/2021/06/21/blockchain/ |
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 'pathname' | |
| SRCS = FileList['**/*.c'] | |
| DSTS = SRCS.ext('o').pathmap('build/%d/%f').map do |f| | |
| Pathname.new(f).cleanpath.to_s | |
| end | |
| DST_TO_SRC_H = DSTS.zip(SRCS).to_h | |
| task :compile => DSTS |
NewerOlder