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 / 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 -->
// This changes the bracket syntax of Angular applications.
// Useful if you are using another templating system that uses {{}} brackets Ex. Handlebars
appModule.config(function($interpolateProvider) {
$interpolateProvider.startSymbol('{[');
$interpolateProvider.endSymbol(']}');
});
@1forh
1forh / outBoundLink.js
Last active March 7, 2016 20:52
Two onclick events on one button -- Google Analytics Event Tracking
@1forh
1forh / active-class.html
Created March 17, 2016 02:39
Move active class on menu item with Panini helper #ifpage
<nav>
<ul>
<li {{#ifpage 'index'}}class="active"{{/ifpage}}><a href="index.html">Home</a></li>
<li {{#ifpage 'services'}}class="active"{{/ifpage}}><a href="services.html">Services</a></li>
<li {{#ifpage 'about-us'}}class="active"{{/ifpage}}><a href="about-us.html">About Us</a></li>
<li {{#ifpage 'contact-us'}}class="active"{{/ifpage}}><a href="contact-us.html">Contact Us</a></li>
</ul>
</nav>
@1forh
1forh / wtfisgoingon.css
Last active March 29, 2016 00:23
come on man...
* { cursor: progress !important; pointer-events: none !important; }
*::selection { background: none !important; }
@1forh
1forh / gist:02d8572861bf80c98db601a1e8cc61bc
Created May 3, 2016 16:35 — forked from learncodeacademy/gist:5850f394342a5bfdbfa4
SSH Basics - Getting started with Linux Server Administration

###SSH into a remote machine###

ssh user@mydomain.com
#or by ip address
ssh user@192.168.1.1

exit: exit ###Install Something###

#If it's a new server, update apt-get first thing
@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 / .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 / 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>