Skip to content

Instantly share code, notes, and snippets.

View cheapwebmonkey's full-sized avatar
🏳️‍🌈
she/they. bi. INTJ. literal genius. I break things. #civictech #opendata

Margeaux Spring cheapwebmonkey

🏳️‍🌈
she/they. bi. INTJ. literal genius. I break things. #civictech #opendata
View GitHub Profile
@cheapwebmonkey
cheapwebmonkey / foreach-modal.php
Created June 21, 2020 14:57 — forked from neilgee/foreach-modal.php
Bootstrap ACF Foreach & While Loop of Modals
<?php
$modals = array( 'modal1', 'modal2', 'modal3', 'modal4' );// Set the array
$i = 1; // Set the increment variable
foreach( $modals as $modal ):
?>
<!-- Button to Open the Modal -->
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal-<?php echo $i; // Displaying the increment ?>">
#!/usr/bin/env swift
//
// faceExtraction.swift
// FaceITDetection
//
// Extracts faces detected in images
//
// Created by NovaTec GmbH on 16.08.17.
// Copyright © 2017 NovaTec GmbH. All rights reserved.
//
@philgyford
philgyford / .gitignore
Last active March 1, 2023 09:18
A script for importing images, and data about them in a CSV file, into WordPress
images/*
*.csv
@vishalkakadiya
vishalkakadiya / manage_columns_wp_admin.php
Last active March 16, 2024 01:08
Manage custom columns with sortable in WordPress Admin side
<?php
/*
* =================================================================================================
* Below both hooks works for custom post types.
* e.g. Suppose we have custom post-type name : Books
* @ref https://codex.wordpress.org/Plugin_API/Action_Reference/manage_$post_type_posts_custom_column
* =================================================================================================
*/
@brandonaaskov
brandonaaskov / alexa-oauth-example.js
Created August 19, 2016 17:48
Basic OAuth Example for Linking Accounts with an Alexa Skill
var express = require('express')
var router = express.Router()
var qs = require('qs')
function login (req, res) {
const query = qs.parse(req.query)
req.session.alexa = query // store the variables for the redirect URI after successful login
res.render('login')
}
anonymous
anonymous / index.html
Created July 13, 2016 12:07
flickr // source http://jsbin.com/hebomo
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="description" content="flickr">
<meta charset="utf-8" />
<title></title>
<script src="http://cdn.kendostatic.com/2012.1.322/js/jquery.min.js" type="text/javascript"></script>
<script src="http://cdn.kendostatic.com/2012.1.322/js/kendo.web.min.js" type="text/javascript"></script>
<link href="http://cdn.kendostatic.com/2012.1.322/styles/kendo.common.min.css" rel="stylesheet" type="text/css" />
@wpscholar
wpscholar / vagrant-cheat-sheet.md
Last active July 19, 2024 14:51
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#9b59b6, 6.5%)",
"@brand-success": "#27ae60",