Skip to content

Instantly share code, notes, and snippets.

View 1forh's full-sized avatar
🎯
Focusing

1forh

🎯
Focusing
View GitHub Profile
// 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 / .editorconfig
Last active June 23, 2016 16:25
Standard .editorconfig file
# editorconfig.org
root = true
[*]
indent_style = tabs
indent_size = 1
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
@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 / marietta-college-fb-tracking.html
Created June 8, 2016 13:44
Marietta College FB Tracking
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '838997806201490');
fbq('track', "PageView");
@1forh
1forh / map.css
Last active May 24, 2018 13:36
Counties on Google Map
.map-wrapper {
width: 100%;
height: 400px;
}
@1forh
1forh / structure.md
Last active September 16, 2017 02:20
Angular Application - Example Folder structure
app
  dashboard
    components
      dashboard-tile
        dashboard-tile.component.ts
    containers (views)
      dashboard
        dashboard.component.ts
 models
@1forh
1forh / instructions.md
Last active June 1, 2018 18:37
Autocomplete Git commands in terminal
  1. Run in intermal: curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
  2. Run in terminal: code ~/.bash_profile
  3. Add to .bash_profile:
if [ -f ~/.git-completion.bash ]; then
  . ~/.git-completion.bash
fi