View bricklink-mod.user.js
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
// ==UserScript== | |
// @name BrickLinkMod | |
// @description Mark sets you own on bricklink.com interface | |
// @author BertW | |
// @version 1.0.1 | |
// @require https://code.jquery.com/jquery-3.5.1.slim.min.js | |
// @grant none | |
// @match https://www.bricklink.com/* | |
// ==/UserScript== |
View .htaccess
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
# Rewrite non-https to https + www | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTPS} off [OR] | |
RewriteCond %{HTTP_HOST} !^www\. [NC] | |
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC] | |
RewriteRule ^ https://www.%1%{REQUEST_URI} [L,NE,R=301] | |
</IfModule> | |
# Rewrite non-https to https without www |
View search.php
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
<?php | |
// INPUT VARS | |
$start = 2677889; | |
$end = 26888999; | |
/** | |
* @param integer $input | |
* @return false|int | |
*/ |
View index.js
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'; | |
/** | |
* Android sample showing speech recognition using Hyperloop. | |
* | |
* @version Titanium 6.1.2.GA | |
* @version Alloy 1.9.13 | |
* @version Hyperloop 2.1.3 | |
*/ |
View xssi.js
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
/** | |
* Connect/Express middleware to automatically prepend ")]}" plus a newline to your JSON response. | |
* | |
* Angular2 picks this up automatically and strips the response of these characters. | |
* | |
* Example: call res.json() anywhere in the route chain and it will follow the directions below. | |
*/ | |
module.exports = function(req, res, next) { | |
res.json = function(data) { | |
var xssiProtection = ')]}\',\n'; |
View helpers.scss
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
$type: (p:padding, m:margin); | |
$position: (t:top, l:left, b:bottom, r:right); | |
$range: 0 5 10 15 20 25 30 35 40; | |
/* | |
* Loop and create classes that serve as quick padding/margin modifiers. | |
* Explanation of class syntax: | |
* | |
* ".p-t-0" Assign a padding-top of 0px (!important). | |
* ".m-b-35" Assign a margin-bottom of 35px (!important). |