- i – before cursor
- a – after cursor
- O – above current line
- o – below current line
- I – beginning of line
- A – end of line
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
const { resolve } = require('path'); | |
const { readdir } = require('fs').promises; | |
const fs = require('fs'); | |
const result = []; | |
async function* getFiles(dir) { | |
const dirents = await readdir(dir, { withFileTypes: true }); | |
for (const dirent of dirents) { | |
const res = resolve(dir, dirent.name); | |
if (dirent.isDirectory()) { |
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
@-moz-document url-prefix("https://pinboard.in") { | |
body { | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | |
font-size: 16px; | |
line-height: 1.4em; | |
} | |
#banner { | |
width: 100%; | |
padding-bottom: 1rem; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<system.webServer> | |
<urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true"/> | |
<staticContent> | |
<remove fileExtension=".svg" /> | |
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" /> | |
<mimeMap fileExtension=".woff" mimeType="application/font-woff" /> | |
<clientCache httpExpires="Sun, 29 Mar 2020 00:00:00 GMT" cacheControlMode="UseExpires" /> | |
</staticContent> |
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
#!/bin/sh | |
while read -d $'0' arg ; do | |
echo $arg | |
if [[ $arg == *"/tags/"* ]]; then | |
echo "Pushing tags is not allowed!" | |
exit 1 | |
fi | |
done |
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
module.exports = function (grunt) { | |
grunt.initConfig({ | |
/** | |
* Build JS code from AMD modules with Browserify | |
*/ | |
browserify: { | |
testspecs: { | |
src: ["scripts/test/spec/<%= browserifySpecs %>.js"], | |
dest: 'scripts/test/specs-built.js' | |
} |
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 bash | |
# | |
# checks your scss files for unused variables | |
# | |
if [ -z "$1" ]; then | |
echo "Please specify a directory as the first argument." | |
exit 1 | |
fi | |
if [ ! -d "$1" ]; then |
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 bash | |
# | |
# checks how many times SASS variables have been used inside a project | |
# | |
if [ -z "$1" ]; then | |
echo "Please specify a directory as the first argument." | |
exit 1 | |
fi | |
if [ ! -d "$1" ]; then |
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
# Editors/IDEs # | |
################ | |
*.swp | |
.idea | |
# Node/NPM # | |
############ | |
node_modules | |
npm-debug.log |
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
# .aliases | |
alias search='find . -iname ' | |
alias changelog='svn log -l 10 -v | more' | |
alias mychangelog="svn log -l 50 | sed -n '/mario.fink/,/-----$/ p'" | |
alias uservm='source /Users/mariofink/.rvm/scripts/rvm' | |
######################################################################## | |
# .profile | |
PS1="\n\w\n> " |
NewerOlder