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
jQuery('a').each(function() { | |
var url = jQuery(this).attr('href'); | |
var httpRegex = new RegExp('https?:\/\/', 'i'); | |
if (url.toLowerCase().indexOf(window.location.hostname) == -1 && httpRegex.test(url)) { | |
jQuery(this).attr('target', '_blank'); | |
} | |
}); |
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
function doSomething( str, a ) { | |
eval( str ); | |
console.log(a); | |
} | |
function getRandomInt( min, max ) { | |
min = Math.ceil(min); | |
max = Math.floor(max); | |
return Math.floor( Math.random() * ( max - min ) ) + min; | |
} |
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
// Run on a OSRS GE wiki page such as: http://2007.runescape.wikia.com/wiki/Exchange:Abyssal_whip | |
var prices = jQuery('[data-data]').attr('data-data').split('|'), thisprice, data = [], volumes = [], isSmall = false; | |
// This loop has been 'borrowed' from their implementation of Highcharts. | |
// http://2007.runescape.wikia.com/index.php?title=MediaWiki:Common.js/GECharts.js&action=raw&ctype=text/javascript&reviewed=1487971769 | |
for (var i = 0; i < prices.length; i++ ) { | |
if ( prices[i].trim() ) { | |
thisprice = prices[i].split( ':' ); |
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
// If you somehow lose your pizza tracking and they didn't email you the link just replace the order number at the end of this URL with the one from your paypal receipt. | |
https://internetorder.dominos.com.au/eStore/en/tracker?order={OrderNumberHere} |
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 _ from "lodash"; | |
import React, { PureComponent } from "react"; | |
import { render } from "react-dom"; | |
import styled from "styled-components"; | |
const createStyles = props => { | |
const { | |
padding, | |
buttons, | |
pt, |
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 React, { PureComponent } from "react"; | |
import { render } from "react-dom"; | |
import { css } from "glamor"; | |
const flex = { | |
display: "flex" | |
}; | |
const column = { | |
flexDirection: "column" |
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
const fs = require('fs'); | |
const path = require('path'); | |
const dependencies = require('../package.json').dependencies; | |
const devDependencies = require('../package.json').devDependencies; | |
const yarnFile = fs.readFileSync(path.join(__dirname, '../yarn.lock'), 'utf8'); | |
// Grabs the version from package.json file | |
const versionRegexp = new RegExp(/[0-9]+\.[0-9]+\.[0-9]+(\-(beta|rc).*)?/i); |
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
#/usr/bin/env bash | |
git config --global init.templatedir '~/.git-templates' && \ | |
mkdir -p ~/.git-templates/hooks && \ | |
cd ~/.git-templates/hooks | |
cat >post-checkout <<'EOL' | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { |
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 | |
# Gets the current users branch | |
currentBranch="$(git branch | grep \* | cut -d ' ' -f2)" | |
# Only run if the user is on beta / beta-dev / master branches | |
if [ "$currentBranch" = "beta" ] || [ "$currentBranch" = "beta-dev" ] || [ "$currentBranch" = "master" ] ; then | |
# Needed to capture keyboard input during the pre-push stage | |
# https://stackoverflow.com/questions/3417896/how-do-i-prompt-the-user-from-within-a-commit-msg-hook |
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
version: "3.2" #2.1 | |
services: | |
qbittorrent: | |
image: lscr.io/linuxserver/qbittorrent:latest | |
container_name: qbittorrent | |
environment: | |
- PUID=1000 | |
- PGID=1000 | |
- TZ=Etc/UTC | |
- WEBUI_PORT=8080 |
OlderNewer