This file contains 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
gulp.watch ['path/to/**/*.coffee'], ['compile'] |
This file contains 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 java.awt.*; | |
import java.awt.event.*; | |
import javax.swing.*; | |
import javax.swing.event.*; | |
import javax.swing.text.html.*; | |
public class SwingHTMLBrowser extends JFrame implements ActionListener, HyperlinkListener { | |
private JTextField addressBar; | |
private JEditorPane pane; |
This file contains 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/bash | |
usage() { | |
echo 'sh reproduce.sh path/to/existing/empty/folder' | |
exit 1 | |
} | |
if [ $# -ne 1 ]; then | |
usage | |
fi |
This file contains 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
'use strict'; | |
function getDepth(element, depth) { | |
let maxDepth = depth; | |
for (let i = 0; i < element.children.length; ++i) { | |
let childDepth = getDepth(element.children[i], depth + 1); | |
if (maxDepth < childDepth) { | |
maxDepth = childDepth; | |
} | |
} |
This file contains 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
'use strict'; | |
const $ = require('jquery'); | |
const html2canvas = require('html2canvas'); | |
if (ARGS.length < 2) { | |
throw new Error('Selector is required'); | |
} | |
const selector = ARGS[0]; |
This file contains 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 | |
set -eu | |
PROGNAME=$(basename $0) | |
BASEDIR=$(cd $(dirname $0); pwd) | |
BRANCH= | |
INSTALL_DIR=/usr/local/bin | |
CLEAN=no |
This file contains 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 | |
set -eu | |
PROGNAME=$(basename $0) | |
BASEDIR=$(cd $(dirname $0); pwd) | |
DKMS=no | |
ACTION= | |
DEPS="curl gcc make python unzip" |
This file contains 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 | |
set -eu | |
PROGNAME=$(basename $0) | |
BASEDIR=$(cd $(dirname $0); pwd) | |
COPY_BOOT=n | |
ISCSI_PORTAL= | |
ISCSI_TARGET= |
This file contains 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/bash | |
# Armbian linux-headers-rockchip64 for 4.4.xxx-rockchip64 has been broken. | |
# Several files required for building drivers are missing. | |
# | |
# * https://forum.armbian.com/topic/9540-linux-headers-rk3399-is-broken-for-building-out-of-tree-modules-with-fix/ | |
# * https://forum.armbian.com/topic/9602-linux-headers-41920-cubox-make-scripts-fails/ | |
# * https://forum.armbian.com/topic/873-solved-compiling-drivers-error-no-header-files-found/ | |
# Reboot before running this script if you have been just upgraded kernel. |
OlderNewer