Skip to content

Instantly share code, notes, and snippets.

@gvinson
gvinson / LinkList.vue
Last active January 4, 2023 18:58
Frontend Assessment (with Vue)
// IE 10+
@mixin ie-only() {
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
@content;
}
}
// IE Edge 10+ {
@mixin ie-edge-only {
@supports (-ms-accelerator:true) or (-ms-ime-align:auto) {
@gvinson
gvinson / gist:f692897708807be32dae
Created August 21, 2015 20:47
Load Scripts and Stylesheets without Blocking Render
/**
* The following must be inserted before the
* closing head tag.
*/
var scripts = [ '/js/script.js', '/js/script2.js' ];
var stylesheets = [ '/css/styles.css', '/css/styles.css' ];
// Load stylesheets
for (var i=0; i < stylesheets.length; i++) {
var link = document.createElement('link');
@gvinson
gvinson / Facebook and Twitter feeds
Created July 3, 2013 18:42
Post class is for each social network post.
<?php
//set timezone (change this to your timezone)
date_default_timezone_set("America/Chicago");
class Post {
public $text;
public $date;
public $title;
public $link;