find . -empty -type f -print -delete
find . -empty -type d -print -delete
find . \( -name ".git" -o -name ".gitignore" -o -name ".gitmodules" -o -name ".gitattributes" \) -exec rm -rf -- {} +
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<style> | |
/* Hide AddToAny vertical share bar when screen is less than 980 pixels wide */ | |
@media screen and (max-width: 980px) { | |
.a2a_floating_style.a2a_vertical_style { display: none; } |
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
import subprocess | |
import logging | |
import shutil | |
import os | |
import stat | |
import errno | |
import platform | |
from sys import exit | |
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 Promise = require( 'bluebird' ); | |
const fs = Promise.promisifyAll( require( 'fs' ) ); | |
const crypto = require( 'crypto' ); | |
const path = require( 'path' ); | |
const pathA = "."; | |
const pathB = "/path/to/the/directory/you/want/to/compare/it/to"; | |
let hashes = []; | |
function hashDirIn ( folder ) { | |
var pathPromiseA = fs.readdirAsync( folder ).map( function ( fileName ) { | |
var workPath = path.join( folder, fileName ); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/python3 | |
# | |
# Search for keywords in files reachable from current directory. | |
from sys import argv | |
from os.path import basename | |
import readline | |
from subprocess import run, PIPE | |
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
/************************* | |
* //NODE-JS-CHEAT-SHEET * | |
*************************/ | |
var http = require('http'); | |
// An example of a web server written with Node which responds with 'Hello World'. | |
// To run the server, put the code into a file called example.js and execute it with the node program. | |
http.createServer(function (request, response) { | |
response.writeHead(200, {'Content-Type': 'text/plain'}); | |
response.end('Hello World\n'); | |
}).listen(8124); |
The essential toolkit for web-developers
Emmet is a productivity toolkit for web developers that uses expressions to generate HTML snippets.
Normally, installation for Emmet should be a straight-forward process from the package-manager, as most of the modern text editors support Emmet. If you have difficulty setting up emmet with your editor and wish to check Emmet is supported by your favourite editor or not, you can check it from here. Emmet Installation instructions
OlderNewer