Skip to content

Instantly share code, notes, and snippets.

@moxdev
moxdev / config.rb
Created June 2, 2016 15:50 — forked from bcinarli/config.rb
Bourbon based SASS config and debug options After import the config file, you can call bourbon as @import "bourbon"
# define bourbon path, use a common library for preventing duplicates
add_import_path "path/to/your/bourbon/lib"
### -->> project paths, delete/comment if you use scout, codekit etc.
environment = :production # removes single line comments, keeps css comments
output_style = :compact
css_dir = "styles" #relative to project root
sass_dir = "styles-sass" #relative to project root
images_dir = "images" #relative to project root
@moxdev
moxdev / ohmyzsh-dropbox-sync.sh
Created June 3, 2016 01:58 — forked from robbyrussell/ohmyzsh-dropbox-sync.sh
Keep your @ohmyzsh ~/.zshrc in sync via dropbox
# Was asked how I keep my zshrc config sync'd between my computers with Dropbox
# Add a new directory in your Dropbox (or use an existing one)
mkdir -p ~/Dropbox/ohmyzsh
# move existing file to Dropbox
mv ~/.zshrc ~/Dropbox/ohmyzsh/zshrc
# symlink file back to your local directory
ln -s ~/Dropbox/ohmyzsh/zshrc ~/.zshrc
/**
*
* Gulpfile setup
*
* @since 1.0.0
* @authors Ahmad Awais, @digisavvy, @desaiuditd, @jb510, @dmassiani and @Maxlopez
* @package neat
* @forks _s & some-like-it-neat
*/
@moxdev
moxdev / _mq.scss
Created January 12, 2017 20:11 — forked from jwebcat/_mq.scss
handy sass mixin for media queries
$break-small: 320px;
$break-large: 1024px;
@mixin respond-to($media) {
@if $media == handhelds {
@media only screen and (max-width: $break-small) { @content; }
}
@else if $media == medium-screens {
@media only screen and (min-width: $break-small + 1) and (max-width: $break-large - 1) { @content; }
}
@moxdev
moxdev / cities.json
Created June 5, 2017 13:39 — forked from Miserlou/cities.json
1000 Largest US Cities By Population With Geographic Coordinates, in JSON
[
{
"city": "New York",
"growth_from_2000_to_2013": "4.8%",
"latitude": 40.7127837,
"longitude": -74.0059413,
"population": "8405837",
"rank": "1",
"state": "New York"
},
@moxdev
moxdev / 0_reuse_code.js
Created June 23, 2017 18:51
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@moxdev
moxdev / mm4-server-gh-integration.md
Created December 12, 2018 19:18 — forked from cstielper/mm4-server-gh-integration.md
MM4 Server GH Integration

MM4 Server GitHub Integration

WordPress Installation

  1. Install WordPress
  2. In the /wp-content/themes directory, create a folder that matches your theme's text-domain (make sure permissions are set to 755)

Add SSH Key to Server

  1. From your terminal, SSH into the server: ssh -p port user@IP
@moxdev
moxdev / evoluent-verticalmouse.xml
Created November 12, 2019 18:43 — forked from patrickwelker/evoluent-verticalmouse.xml
Karabiner Template to setup a secondary function key with the Evoluent Vertical Mouse. In this example Button 6 gets assigned the following modifiers: Shift-Right, Control-Right, Option-Right and Command-Right. Import via `<include path="YOUR-PATH-HERE/evoluent-verticalmouse.xml" />`
<?xml version="1.0"?>
<root>
<item>
<name>Evoluent VerticalMouse</name>
<appendix>All customizations only apply for the Evoluent VerticalMouse.</appendix>
<appendix>Note: button 4 (the mouse scroll button) and button 5 are swapped in Karabiner. I still use the default Evoluent labeling.</appendix>
<devicevendordef>
<vendorname>EVOLUENT</vendorname>
<vendorid>0x1a7c</vendorid>
</devicevendordef>
@moxdev
moxdev / deskStructure.js
Created October 15, 2020 17:54
Idea: You can create Categories (e.g. Programming Basics). Inside these you can create individual lessons (e.g. What are variables?, what are recursions?).
import S from "@sanity/desk-tool/structure-builder"
import { FaFileText, FaEdit, FaComment, FaPlayCircle, FaQuestionCircle, FaCheckCircle } from 'react-icons/lib/fa'
export default () =>
S.list()
.title("App")
.items([
S.listItem()
.title("Content")
.icon(FaFileText)
@moxdev
moxdev / category.js
Created October 15, 2020 17:55
IDEA: You can create Categories (e.g. Programming Basics). Inside these you can create individual lessons (e.g. What are variables?, what are recursions?). If I want to create a Lesson inside I category now, I don't want to reference the category manually but want the category already selected for reference in the new lesson document. So there s…
import { FaListAlt } from 'react-icons/lib/fa'
export default {
title: "Category",
name: "category",
type: "document",
icon: FaListAlt,
fields: [
{
title: "Name",