In Grunt, this is how your can match filenames with multiple dots and write to filenames that contain the original dot sequence, except for file extension.
/path/to/module.somename.scss -> /path/to/module.somename.css
In Grunt, this is how your can match filenames with multiple dots and write to filenames that contain the original dot sequence, except for file extension.
/path/to/module.somename.scss -> /path/to/module.somename.css
var a = []; | |
//Create an array of 10 numbers, spaced by 3 | |
for(i of Array(10).keys()) a.push(i*3); | |
//[ 0, 3, 6, 9, 12, 15, 18, 21, 24, 27 ] | |
//The same but starting from 10 | |
for(i of Array(10).keys()) a.push(10 + i*3); | |
//[ 10, 13, 16, 19, 22, 25, 28, 31, 34, 37 ] |
let mapleader = "<Space>" | |
" Remap home and end to "ctrl+;" and ";" in addition to default "0" and "$" | |
noremap <leader>a ^ | |
noremap <leader>; $ | |
" Application-specific remapping example here: | |
" http://askubuntu.com/questions/97213/application-specific-key-combination-remapping/98355 | |
noremap <C-b> 10j | |
noremap <C-m> 10k |
[ | |
"http://psung.blogspot.com/2011/09/network-audio-with-pulseaudio-made.html", | |
"http://manurevah.com/blah/en/p/PulseAudio-Sound-over-the-network", | |
"http://unix.stackexchange.com/questions/193208/program-run-in-ssh-accessing-pulseaudio-on-the-machine-where-it-runs" | |
] |
#!/bin/bash | |
mkdir wordpress-site && cd wordpress-site | |
touch docker-compose.yml | |
cat > docker-compose.yml <<EOL | |
version: "2" | |
services: | |
my-wpdb: |
import { AbilityBuilder, Ability } from 'casl' | |
// Alternatively this data can be retrieved from server | |
export default function defineAbilitiesFor(user) { | |
const { rules, can } = AbilityBuilder.extract() | |
can('read', 'User') | |
can('update', 'User', { id: user.id }) | |
if (user.role === 'doctor') { |
or might be easy with gdisk/fdisk ? I'm not sure about this.
------------------------------------------------------------------------
see the reference for more detail, if you want.
https://richardstechnotes.wordpress.com/2015/12/18/setting-up-an-nvme-ssd-on-ubuntu-14-04-lts/
http://takatakamanbou.hatenablog.com/entry/2015/10/25/235600 : Japanese website
/** | |
* How to execute a list of functions subject to a delay | |
*/ | |
const interval = 3000 | |
const delay = time => new Promise(resolve => setTimeout(resolve, time)) | |
// in practice, this would be an array of functions with nested callbacks | |
const fns = Array(3).fill((() => console.log(Date.now()))) | |
// wait for each delay before executing the next function |
const { | |
aceVimMap, | |
mapkey, | |
imap, | |
imapkey, | |
getClickableElements, | |
vmapkey, | |
map, | |
unmap, | |
cmap, |