Skip to content

Instantly share code, notes, and snippets.

@adihimself
adihimself / _ae-webbase.scss
Last active May 6, 2019 09:53
Default SCSS
$c_bodybackground: #fff;
$c_textcolor: #000;
$c_linkcolor: #000;
$container_width: 1200;
$font_family: sans-serif;
/* PX to EM */
$browser-context: 24;
@function em($pixels, $context: $browser-context) {
@adihimself
adihimself / apps.js
Last active February 5, 2018 10:37
Scroll Top Link
$('body').append('<div class="toplink"><span class="lnr lnr-chevron-up"></span></div>');
$('body > .toplink').click(function(e){
e.preventDefault();
$('html,body').animate({
scrollTop: 0
},1000);
});
$(window).scroll(function(event) {
if ($(window).scrollTop() > 300) {
@adihimself
adihimself / index.html
Last active January 20, 2016 13:18
PaperJS After jQuery getJSON
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tool</title>
<link rel="stylesheet" href="css/styles.css">
<script src="//code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/paper.js/0.9.25/paper-full.js"></script>
<script type="text/javascript" src="mypaperscript.js"></script>

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt