$ curl -X PUT http://localhost:5984/koi
{"ok":true}
$ curl -X POST http://localhost:5984/koi -d '{"name":"alice","age":25}' -H'Content-Type:application/json'
extension NSImage { | |
func pixelBuffer() -> CVPixelBuffer? { | |
let width = self.size.width | |
let height = self.size.height | |
let attrs = [kCVPixelBufferCGImageCompatibilityKey: kCFBooleanTrue, | |
kCVPixelBufferCGBitmapContextCompatibilityKey: kCFBooleanTrue] as CFDictionary | |
var pixelBuffer: CVPixelBuffer? | |
let status = CVPixelBufferCreate(kCFAllocatorDefault, | |
Int(width), | |
Int(height), |
This script will import Markdown files from a folder. It will only import files ending in .md
, so it skips folders and images. This will use the file name as the note name. If there is a H1 on the first line, it will remove that line and trim the file in order to remove redundancy.
Developer > Toggle Developer Tools
.path/to/folder/with/markdown/files/
with a path to the folder with the markdown files in it. Make sure to include the trailing "/".PouchDB server is a nodejs implementation of CouchDB. Below is the steps to use AmazonRDS and NowJS to deploy your own PouchDB Server. Using MySQL as a persistent backend.
Create a Amazon Web Services Account
function walle | |
set light_blue C7E2E8 | |
set gray C1C1BD | |
set light_gray EEE | |
set dark_gray 565653 | |
set bronze C6973F | |
set yellow FFE500 | |
set lime C6E80B | |
set brown 8C5D05 |
function domTo3DView(b, p) { | |
function l(k, c, b, e, g, d, f) { | |
return "<div style='position:absolute;-webkit-transform-origin: 0 0 0;" + ("background:" + f + ";") + ("width:" + e + "px; height:" + g + "px;") + ("-webkit-transform:" + ("translate3d(" + k + "px," + c + "px," + b + "px)") + ("rotateX(270deg) rotateY(" + d + "deg)") + ";") + "'></div>" | |
} | |
function o(k, c, d, f) { | |
for (var j = k.childNodes, n = j.length, m = 0; m < n; m++) { | |
var a = j[m]; | |
if (1 === a.nodeType) { | |
a.style.overflow = "visible"; |
const val TAG_LENGTH = 16 | |
class EncryptionOutput(val iv: ByteArray, | |
val tag: ByteArray, | |
val ciphertext: ByteArray) | |
fun encrypt(key: SecretKey, message: ByteArray): EncryptionOutput { | |
val cipher = Cipher.getInstance("AES/GCM/NoPadding") | |
cipher.init(Cipher.ENCRYPT_MODE, key) | |
val iv = cipher.iv.copyOf() |
# PS Modules | |
Import-Module posh-git | |
Import-Module oh-my-posh | |
Import-Module ZLocation | |
Set-Theme robbyrussell # お好きなテーマ | |
Set-PSReadLineOption -EditMode Emacs |
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
import foo from 'foo'
instead of const foo = require('foo')
to import the package. You also need to put "type": "module"
in your package.json and more. Follow the below guide.await import(…)
from CommonJS instead of require(…)
.