Skip to content

Instantly share code, notes, and snippets.

@wilhelser
wilhelser / gist:bcfe4f1dea2c2b04d15a1b7cdf73e1ac
Last active April 2, 2024 21:31
Code Learning Resources
JAVASCRIPT
https://javascript.info/
https://skillcrush.com/blog/learn-javascript-for-free/
https://roadmap.sh/javascript
https://www.youtube.com/watch?v=FtaQSdrl7YA
https://learnjavascript.online/
https://www.gracehopper.com/blog/best-ways-to-learn-javascript-for-beginners
https://www.udemy.com/course/the-complete-javascript-course
<script>
var $buoop = {vs:{i:9,f:-4,o:-4,s:8,c:-4},api:4};
function $buo_f(){
var e = document.createElement("script");
e.src = "//browser-update.org/update.min.js";
document.body.appendChild(e);
};
try {document.addEventListener("DOMContentLoaded", $buo_f,false)}
catch(e){window.attachEvent("onload", $buo_f)}
</script>
@wilhelser
wilhelser / css-media-queries-cheat-sheet.css
Created June 21, 2017 15:37 — forked from bartholomej/css-media-queries-cheat-sheet.css
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }
@wilhelser
wilhelser / ie.css
Created October 2, 2015 21:58
IE Specific Media Queries
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
}
@wilhelser
wilhelser / gist:62cbcf451ca0a6ee2561
Created February 26, 2015 20:30
Dakotas Gallery
<?php
/* Template Name: Gallery */
get_header(); ?>
<main role="main">
<section class="hero gallery-hero">
<div class="menus-headline">
<h1>Gallery</h1>
</div>
@wilhelser
wilhelser / gist:067e50efff9a725201b5
Created August 27, 2014 16:49
Identity IQ Code
- if @template.blank?
%section.content.interior
.row
.medium-10.columns.medium-offset-1
- @benefits.each do |benefit|
.benefits-heading.medium-12
.inner
.outer
.inner.benefit-inner
= benefit.title
.online-course-icon {
display: block;
float: right;
height: 20px;
width: 20px;
background: url("/wp-content/themes/InfiniteFoundation/assets/img/online.png") no-repeat;
}
@wilhelser
wilhelser / gist:86af55fc339e066d247b
Last active August 29, 2015 14:04
Foundation Accordion
<div class="medium-3 columns">
<h4 id="accordion">Accordion</h4>
<dl class="accordion" data-accordion>
<dd>
<a href="#panel1">Section 1</a>
<div id="panel1" class="content active">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt placeat recusandae, quos quis dicta quod.</p>
</div>
</dd>
<dd>
@wilhelser
wilhelser / gist:15203afae6c314a4f134
Created July 19, 2014 21:55
Smooth Scrolling to Anchor
$(function() {
$('a[href*=#]:not([href=#])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top
}, 1000);
return false;