View captureDump.js
const img = nativeImage.createFromBitmap(capture.data, { | |
width: capture.width, | |
height: capture.height, | |
}) | |
fs.writeFile('screen.png', img.toPNG(), (err) => { | |
console.log({ err }) | |
}) |
View Paginate.svelte
<script> | |
import { onMount } from 'svelte' | |
import { get } from '../data/api' | |
import Icon from './Icon' | |
export let collection | |
export let load | |
export let items = 20 | |
let pages = {} |
View Njor.lua
local ADDON, NS = ... | |
local LibCopyPaste = LibStub("LibCopyPaste-1.0") | |
local Njor = CreateFrame("Frame", ADDON .. "Frame") | |
Njor:SetScript( | |
"OnEvent", | |
function(self, event, ...) | |
if self[event] then |
View adventure-time.json
[ | |
{ | |
"name": "Finn the Human", | |
"image": "http://i.cdn.turner.com/v5cache/CARTOON/site/Images/i18/propd_at_char_finn.png", | |
"details": "Finn is a silly kid who wants to become a great hero one day. He might not look too tough, but if there's evil around, he'll slay it. That's his deal." | |
}, | |
{ | |
"name": "Jake the Dog", | |
"image": "http://i.cdn.turner.com/v5cache/CARTOON/site/Images/i18/propd_at_char_jake.png", | |
"details": "Finn's best friend is a wise, old dog with a big heart. Jake has the magical ability to stretch and grow. When evil's not running amok, he plays viola with his girlfriend, Lady Rainicorn." |
View gist:d0452d4be6e3402f0a0fe080c2eb4882
dOJ(daWskP2ffv2MGmBjDzq3Ks0VOk3wqDyP2ju2lQDtA)Q8tkkAyq63igiv0qHGgSsdNihuHY1ePJPQJdbwieQLsj0IPOulxOhsrvpfPLrupxIjQqyQuKjtP00bUieYNHQNrfUUOAJkeTvfsBwHQTtP4JuuYSOW0GOXjIht4TuvJMk9nfCskj3vGtROZlkFLIcRJs15Oem)Sjg7zQ1wzERnden2OwHXyYSjMAQRqfuy6l7WHdhoy6y5axsKPJbR1juDsNvBGXWeIYuZIIOrHXYKOmv2CPMlLPw2AExTsbWOnqfmjkJyMoc44DEfWyptrKoojkGMNewQbTzpRtqgJyMsLGcRgbJjpGYulBrKmkmwMeTWMySNnXypt9eDbCRVseUTQW6uXdUv2cHKrtymzM6j6c4wFLiCBvH1PIhC7JoGuoHXCWuprxa36Jhj5s2L6iiZ4wLiCBvH1PIBCRtPocY(GB)p9tFgdjt9eDbCRVseUTQW6uXdU9rhqkNWyPm1t0fWT(4rsUKDPocYmUvjc3wvyDQ4g36uQJGm5GB)p9tFglet9eDbuGiihQc4T(kr42QcRtfp42hfDib142hfDib142hfDib142hfDibjJnWuprxa36Jhj5s2L6iiZ4wLiCBvH1PIBCRtPocYCeC7)PF6Zyjm1t0fWT(kr42QcRtfp42hDaPCcJzbM6j6c4wF8ijxYUuhbzg3QeHBRkSovCJBDk1rqgYGB)p9tFg7rzQNOlGB9vIWTvfwNkEWTp6as5eg7FM6j6c4wF8ijxYUuhbzg3QeHBRkSovCJBDk1rqwAWT)N(PpJ9Ym1t0fWT(kr42QcRtfp42hDaPCctriPaSSfrcBIbm1AygcJWsHnXypt9eDbCRFyIT2lUZXbg3QeHBRkSovCJBDgMKxGeBGXGB)puObugtMPEIUaU1pmXw7DfyCRseUTQW6uXnU1zysEbsSbgdU9LrgkrMXCWuprxaficYHQaERFyIT2fGyn42)dfkb142hDaPCcdyQ1Wml |
View printer.cfg
[mcu] | |
serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00 | |
[mcu z] | |
serial: /dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_9573534363335151D012-if00 | |
pin_map: arduino | |
restart_method: arduino | |
[printer] | |
kinematics: corexy |
View seeds.rb
# == Using environment specific yaml fixtures as seed data in Rails 2.3.4 | |
# | |
# Setup your directory structure like below: | |
# | |
# -- RAILS_ROOT | |
# `-- db | |
# |-- seeds | |
# | |-- development | |
# | | |-- books.yml | |
# | | `-- users.yml |
View table.html
<table> | |
<thead> | |
<tr> | |
<th>Firstname</th> | |
<th>Lastname</th> | |
<th>Age</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> |
View adventure-time.json
[ | |
{ | |
"name": "Finn the Human", | |
"image": "http://i.cdn.turner.com/v5cache/CARTOON/site/Images/i18/propd_at_char_finn.png", | |
"details": "Finn is a silly kid who wants to become a great hero one day. He might not look too tough, but if there's evil around, he'll slay it. That's his deal." | |
}, | |
{ | |
"name": "Jake the Dog", | |
"image": "http://i.cdn.turner.com/v5cache/CARTOON/site/Images/i18/propd_at_char_jake.png", | |
"details": "Finn's best friend is a wise, old dog with a big heart. Jake has the magical ability to stretch and grow. When evil's not running amok, he plays viola with his girlfriend, Lady Rainicorn." |
View .rubocop.yml
Metrics/LineLength: | |
Max: 120 | |
AllCops: | |
TargetRubyVersion: 2.5 | |
Exclude: | |
- 'db/schema.rb' | |
- 'db/migrate/*' |
NewerOlder