Skip to content

Instantly share code, notes, and snippets.

View saramarie's full-sized avatar

Sara Marie saramarie

View GitHub Profile
@saramarie
saramarie / webpack.config.js
Created August 12, 2019 18:22
Adding aliases for directories in Webpack
module.exports = {
module: {
rules: [
cssRule, // can set the loaders to a constant
jsxRule, // same as above
],
},
resolve: {
alias: {
// use the relative path to the aliased directory, starting from .storybook
@saramarie
saramarie / Gruntfile.js
Created January 5, 2016 15:26
Quick Front End Boiler
'use strict';
module.exports = function (grunt) {
require('time-grunt')(grunt);
require('load-grunt-tasks')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
@saramarie
saramarie / gist:6815105
Created October 3, 2013 18:57
Way to remove down arrows completely from Firefox (and other browsers)...
select {
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
text-indent: 1px;
text-overflow: '';
}
@saramarie
saramarie / gist:5331041
Created April 7, 2013 15:55
WordPress: Easy way to create new widget areas
/*================================================
= Widget Area Registration =
================================================*/
$widget_list = array (
// Create a new sidebar by adding its name here
'Primary Sidebar',
'Left Footer',
'Left Center Footer',
'Right Center Footer',
@saramarie
saramarie / gist:4053746
Created November 11, 2012 04:42 — forked from padolsey/gist:527683
JavaScript: Detect IE
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}
@saramarie
saramarie / Test
Created November 11, 2012 04:36
HTML: Starting File Template
<html>
<head>
<title></title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<script scr="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
</body>