Skip to content

Instantly share code, notes, and snippets.

View Paul-Morris's full-sized avatar

DrSquid Paul-Morris

  • Paul Morris
  • Canada
View GitHub Profile
@bingeboy
bingeboy / app.js
Last active April 29, 2021 15:52
Upload and display image with NodeJS and Express.
/*
* Module dependencies.
*/
var express = require('express')
, routes = require('./routes')
, user = require('./routes/user')
, common = require('./routes/common')
, fs = require('fs')
, http = require('http')
, util = require('util')
@chasewoodford
chasewoodford / style.scss
Created June 16, 2012 02:12 — forked from saucer-jp/style.scss
sass:mixin fadeIn
$prefix:'-moz-', '-webkit-', '-o-', '-ms-', '';
// ********************
// fadeIn
// ********************
@mixin keyframe-fadeIn {
0% { opacity:0; }
100% { opacity:1; }
}
@-moz-keyframes fadeIn {
@include keyframe-fadeIn;
@BruceMcKinnon
BruceMcKinnon / functions.php
Created December 17, 2020 23:20
Add multiple featured images to posts/pages/cpt etc - no plugin
<?php
// Thanks to:
//
// https://stackoverflow.com/questions/36506088/upload-multiple-featured-images-in-a-custom-post-wordpress
//init the meta box
add_action( 'after_setup_theme', 'custom_postimage_setup' );
function custom_postimage_setup(){
add_action( 'add_meta_boxes', 'custom_postimage_meta_box' );
@BaReinhard
BaReinhard / Installing Wine (After Homebrew).md
Last active October 18, 2023 18:44
Installing Wine to run .exe files on Mac

Install Wine to run .exe files

For Mac OSX

If you haven't installed Homebrew yet do so by following this guide

  1. Open a terminal
  2. brew install --cask xquartz, wait for it to complete the install, it should ask you for your password before beginning
  3. brew install --cask wine-stable , this will take some time to finish so sit back and relax.

For Linux

  1. sudo apt-get install wine-stable
@ohiosveryown
ohiosveryown / change-class-on-scroll.html
Last active March 1, 2024 11:02
Vanilla JS – change/add class based on scroll position.
// https://codepen.io/cmykw/pen/gemxJm
// layout
<nav/>
// style
<style>
body { min-height: 200vh; }
nav {