Skip to content

Instantly share code, notes, and snippets.

View sxalexander's full-sized avatar
🚌
Remotely working for clients

Sam Alexander sxalexander

🚌
Remotely working for clients
View GitHub Profile
@01010111
01010111 / OgmoUtils.hx
Last active May 15, 2022 02:46
Utility class for Ogmo
using haxe.Json;
class OgmoUtils
{
// region PARSING
/**
* Parse OGMO Editor level .json text
* @param json
* @return LevelData
@shrimp2t
shrimp2t / ruleset.xml
Last active January 29, 2019 18:56
Copy it in to ~/.composer/vendor/squizlabs/php_codesniffer/src/Standards/WordPress/ruleset.xml
<?xml version="1.0"?>
<ruleset name="WordPress" namespace="WordPress">
<description>WordPress Coding Standards</description>
<autoload>./PHPCSAliases.php</autoload>
<!--<rule ref="WordPress-Core"/> -->
<rule ref="WordPress-Core">
<exclude name="Generic.Commenting.DocComment.MissingShort" />
@statico
statico / pitchpatterns.md
Last active November 10, 2021 21:36
Pitch Paterns
const WordpressPurgeCSS = {
whitelist: [
"rtl",
"home",
"blog",
"archive",
"date",
"error404",
"logged-in",
"admin-bar",
@vijayanandrp
vijayanandrp / How to do simple automation project using Python atomac in Mac OS X.py
Created June 15, 2017 23:07
How to do simple automation project using Python atomac in Mac OS X?
__author__ = 'vijay'
import os
import atomac
from atomac.AXKeyCodeConstants import *
import time
import commands
from atomac import AXKeyCodeConstants
@crccheck
crccheck / runtests.py
Created June 10, 2015 03:03
Run Django tests using Nose
#!/usr/bin/env python
"""
HACK to support the Django + nose without django-nose.
Built based on documentation from:
* https://docs.djangoproject.com/en/1.8/topics/testing/advanced/#using-the-django-test-runner-to-test-reusable-applications
* http://nose.readthedocs.org/en/latest/usage.html#basic-usage
"""
import sys
@benlk
benlk / 0-toc.md
Last active July 29, 2024 21:58
Collection of notes on WP_UnitTestCase
  1. Table of contents
  2. General information
    1. Terms
    2. General structure of a test
    3. WordPress-specific assertions and test functions
      • enqueues
      • creating posts
      • creating terms
      • attaching images
  • ?
@xaviervia
xaviervia / nginx-environment.md
Last active July 1, 2019 12:45
Nginx and Docker links with environment variables, a love story

How to add environment variables to nginx.conf

This is the hack approach to adding environment variables to the nginx configuration files. As with most Google results for this search, the reason is Docker.

The setup

I intended to deploy two Docker containers.

@davidkelley
davidkelley / .script.app
Last active June 15, 2016 16:34
Configures Vagrant to run Docker & Fig
# Run Application specific setup tasks here!
#!/usr/bin/env bash
cd /vagrant
fig run web foreman run rake db:create
fig run web foreman run rake db:migrate
@epicserve
epicserve / example_command.py
Created October 30, 2013 17:05
Example of how to setup logging for a Django management command.
from django.core.management.base import BaseCommand
from mymodule import main
import logging
class Command(BaseCommand):
help = 'Do foo'
def handle(self, *args, **options):