Skip to content

Instantly share code, notes, and snippets.

View franszo's full-sized avatar

Josh Francovszky franszo

View GitHub Profile
@franszo
franszo / cloudSettings
Last active February 23, 2020 15:45
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-02-23T15:45:42.650Z","extensionVersion":"v3.4.3"}
zip -r output.zip directory -x \*\*/\*/node_modules/\*
@franszo
franszo / sublime_key_bindings_user
Created February 5, 2018 18:23
Sublime Text 3 Key Emmet for JSX
[
{ "keys": ["tab"], "command": "expand_abbreviation_by_tab", "context":
[
{ "operand": "source.js", "operator": "equal", "match_all": true, "key": "selector" },
{ "match_all": true, "key": "selection_empty" },
{ "operator": "equal", "operand": false, "match_all": true, "key": "has_next_field" },
{ "operand": false, "operator": "equal", "match_all": true, "key": "auto_complete_visible" },
{ "match_all": true, "key": "is_abbreviation" }
]
}
https://gist.github.com/bummzack/bc8354405fad09bafdf7446ec7990a2a
@franszo
franszo / .htaccess
Created June 6, 2017 07:37
Simple site maintenance allowing IP to see the site
ErrorDocument 403 /maintenance.html
Order Allow,Deny
Allow from #.#.#.#
@franszo
franszo / gist:1484c20d459c55381c2d15f78e54e9d4
Created June 6, 2017 07:35 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@franszo
franszo / Contract Killer 3.md
Created October 7, 2016 12:02
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

/* =FILTER BY DATE
----------------------------------------------------------------------------- */
jQuery.fn.filterByText = function(ary, selectSingleMatch) {
return this.each(function() {
var select = this;
var options = [];
$(select).find('option').each(function() {
options.push({ value: $(this).val(), text: $(this).text() });
});
$(select).data('options', options);
@franszo
franszo / gist:028e1591cefbcd5f790d
Created October 23, 2015 13:54
CSS Only Checkbox
[type="checkbox"]:not(:checked),
[type="checkbox"]:checked {
position: absolute;
left: -9999px;
}
[type="checkbox"]:not(:checked) + label,
[type="checkbox"]:checked + label {
position: relative;
padding-left: 25px;
@franszo
franszo / markup.html
Created September 12, 2015 12:37
owlCarousel data-attribute driven options HTML Markup
<!-- Basic Init -->
<div class="owl-carousel">
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
</div>
<!-- Init with autoplay -->
<div class="owl-carousel" data-autoplay="true">
<div> Your Content </div>