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
/** | |
* Builds a horizontal masonry in whats possbily (i haven't researched | |
* the techniques) a crude manner. | |
* Fits elements into columns if there is room and sets the width of | |
* the container element to contain all the columns. | |
* | |
* Known Issues: | |
* - Does not do anything clever for elements where height exceeds | |
* window height (probably just gets chopped off if overflow: hidden) | |
* - All elements are expected to be the column width |
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
ACCOUNT_ID="YOUR_ACCOUNT_ID" | |
GROUP_ID="YOUR_ACCESS_GROUP_ID" | |
GROUP_NAME="YOUR_ACCESS_GROUP_NAME" | |
API_TOKEN="YOUR_CLOUDFLARE_API_KEY" | |
IP_ADDRESS=$(curl -s https://api.ipify.org) | |
curl --request PUT \ | |
--url https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/access/groups/$GROUP_ID \ | |
--header 'Content-Type: application/json' \ |
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
{ | |
"comment": "This is the settings file for the SVGO Compressor Plugin. For more info, please check <https://github.com/BohemianCoding/svgo-compressor>", | |
"pretty": true, | |
"indent": 2, | |
"floatPrecision": 3, | |
"plugins": [ | |
{ | |
"name": "removeDoctype", | |
"enabled": true | |
}, |
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
$debug-rhythm: false; |
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
<html class="no-js"> | |
<head> | |
<script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> | |
</head> | |
<body> | |
</body> | |
</html> |
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($){ | |
$.fn.stickToTop = function (offset) { | |
// Return this to maintain chainability | |
return this.each(function () { | |
// Set some variables | |
var $this = $(this), | |
elemTop = $this.offset().top, |
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
<form action=""> | |
<fieldset class="error"> | |
<div class="form-row"> | |
<span class="error-hook"> | |
Please enter a valid email address | |
</span> | |
<div class="input-hook"> | |
<label for="email-address" class="placeholder"> | |
Email address | |
</label> |
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
/** | |
Requires: | |
Spin.js (http://fgnass.github.com/spin.js/) | |
Spin.js jQuery plugin (https://gist.github.com/1290439) | |
Usage: $(#your-id).spinSubmit(); | |
For best results, change the 'small' to - small:{lines:12,length:3,width:2,radius:4} in the jQuery plugin |
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
// =================================================== | |
// Font Face Rules | |
// =================================================== | |
@font-face { | |
font-family: 'Clear Sans'; | |
font-style: normal; | |
font-weight: 100; | |
src: local('ClearSans-Thin'), local('Clear Sans Thin'), | |
url('../fonts/clearsans/ClearSans-Thin.eot'), |
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
let comma = ''; for (const cf of document.querySelectorAll('.class a')) { comma += `${cf.innerHTML},` }; console.log(comma); |
NewerOlder