Skip to content

Instantly share code, notes, and snippets.

View 1forh's full-sized avatar
🎯
Focusing

1forh

🎯
Focusing
View GitHub Profile
@1forh
1forh / guide.md
Last active October 4, 2015 22:36
HLS SASS Guide
@1forh
1forh / Preferences.sublime-settings
Last active February 17, 2017 02:13
Sublime3 Preferences-Settings-User
{
"theme": "Cobalt2.sublime-theme",
"color_scheme": "Packages/Theme - Cobalt2/cobalt2.tmTheme",
"bold_folder_labels": true,
"caret_style": "phase",
"fade_fold_buttons": false,
"font_face": "Consolas",
"font_size": 18,
"highlight_line": true,
"ignored_packages":
@1forh
1forh / index.html
Last active May 4, 2016 14:52
Prevent map zoom on scroll
<div id="map-wrapper">
<iframe id="map-canvas"></iframe>
</div>
@1forh
1forh / current-year.js
Last active June 19, 2016 20:53
Current year in JavaScript
document.write(new Date().getFullYear());
@1forh
1forh / form.html
Last active June 6, 2016 02:13
PHP and AJAX Form Handler
<div id="form-messages"></div>
<form action="mailer.php" method="POST" id="ajax-contact" class="contact-form">
<p>All fields are required.</p>
<label for="name">
Full Name
<input type="text" name="name" id="name" required>
</label>
@1forh
1forh / .htaccess
Last active May 8, 2016 05:42
.htaccess tricks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
# Redirect http://www.example.com to http://example.com
# RewriteCond %{HTTP_HOST} ^www\.example\.com$
# RewriteRule ^/?$ "http\:\/\/example\.com\/" [R=301,L]
# Redirect from the `http://` to the `https://` version of the URL.
# RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
@1forh
1forh / file.css
Created January 9, 2016 04:16
justify-content prefixes
-webkit-justify-content: space-around;
-ms-flex-pack: distribute;
justify-content: space-around;
@1forh
1forh / LICENSE
Last active January 19, 2017 01:51
MIT License
The MIT License (MIT)
Copyright (c) Zachary Minner <1forhlol@gmail.com> (zacharyminner.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@1forh
1forh / index.html
Last active October 15, 2016 13:51
Smooth scroll to div
<a href="#contact" class="smooth">Scroll to #contact</a>
<div id="contact">
Contact!
</div>
@1forh
1forh / fa-icons.html
Last active January 29, 2016 02:03
Useful Font Awesome Icons
<!-- Credit Cards -->
<i class="fa fa-cc-visa"></i>
<i class="fa fa-cc-mastercard"></i>
<i class="fa fa-cc-discover"></i>
<i class="fa fa-cc-amex"></i>
<i class="fa fa-credit-card"></i>
<i class="fa fa-credit-card-alt"></i>
<!-- Social Media -->