To make this work in CSS:
background: url('images.svg#chart');or img:
<img src="images.svg#chart">| find . -name '._*' -exec rm -f {} \; |
| /* | |
| * This work is free. You can redistribute it and/or modify it under the | |
| * terms of the Do What The Fuck You Want To Public License, Version 2, | |
| * as published by Sam Hocevar. See the COPYING file for more details. | |
| */ | |
| /* | |
| * Easing Functions - inspired from http://gizma.com/easing/ | |
| * only considering the t value for the range [0, 1] => [0, 1] | |
| */ | |
| EasingFunctions = { |
To make this work in CSS:
background: url('images.svg#chart');or img:
<img src="images.svg#chart">'use strict';
const crypto = require('crypto');
// get password's md5 hash
let password = 'test';
let password_hash = crypto.createHash('md5').update(password, 'utf-8').digest('hex').toUpperCase();
console.log('key=', password_hash); // 098F6BCD4621D373CADE4E832627B4F6| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Cambridge Silicon Radio\Harmony\Default] | |
| "OSD"=dword:00000000 |
| const replacer = function( depth = Number.MAX_SAFE_INTEGER ) { | |
| let objects, stack, keys; | |
| return function(key, value) { | |
| // very first iteration | |
| if (key === '') { | |
| keys = ['root']; | |
| objects = [{keys: 'root', value: value}]; | |
| stack = []; | |
| return value; | |
| } |
| "start | |
| set number "set relativenumber | |
| nmap <c-x> :wq<CR> | |
| imap <c-x> <Esc>:wq<CR>a | |
| set whichwrap+=<,>,h,l,[,] | |
| syntax on | |
| map <C-n> :NERDTreeToggle<CR> | |
| " |
A metatable in Lua defines various extraneous behaviors for a table when indexed, modified, interacted with, etc. They are Lua's core metaprogramming feature; most well known for being useful to emulate classes much like an OOP language.
Any table (and userdata) may be assigned a metatable. You can define a metatable for a table as such:
-- Our sample table
local tab = {}
-- Our metatable
local metatable = {
-- This table is then what holds the metamethods or metafields| import ts from 'typescript'; | |
| import path from 'node:path'; | |
| import Debug from 'debug'; | |
| const debug = Debug('type-check-only-project-files'); | |
| // ---------------------------------------------------------------- | |
| // This file is a helper file that can be used to run type check | |
| // only for the files that in the project and not for any other file |