Skip to content

Instantly share code, notes, and snippets.

View noahlh's full-sized avatar

Noah Lehmann-Haupt noahlh

View GitHub Profile
@marcedwards
marcedwards / high-dpi-media.css
Last active November 19, 2023 12:56
A CSS media query that captures almost all high DPI aware devices.
/* ---------------------------------------------------------- */
/* */
/* A media query that captures: */
/* */
/* - Retina iOS devices */
/* - Retina Macs running Safari */
/* - High DPI Windows PCs running IE 8 and above */
/* - Low DPI Windows PCs running IE, zoomed in */
/* - Low DPI Windows PCs and Macs running Firefox, zoomed in */
/* - Android hdpi devices and above */
var gulp = require('gulp');
var concat = require('gulp-concat');
var stylus = require('gulp-stylus');
gulp.task('styles', function() {
gulp.src('./bower_components/bootstrap/dist/css/bootstrap.css')
.pipe(concat('vendor.css'))
.pipe(gulp.dest('./public'))
gulp.src('./assets/**/*.styl')
@sogko
sogko / app.js
Last active November 8, 2022 12:31
gulp + expressjs + nodemon + browser-sync
'use strict';
// simple express server
var express = require('express');
var app = express();
var router = express.Router();
app.use(express.static('public'));
app.get('/', function(req, res) {
res.sendfile('./public/index.html');