Skip to content

Instantly share code, notes, and snippets.

View superpowered's full-sized avatar
💭
lost in the void

Andrew Herder superpowered

💭
lost in the void
View GitHub Profile
@preslavrachev
preslavrachev / app.js
Last active July 11, 2017 15:48
Integrating browserify into an Ionic project
var customModule = require('./custom-module');
var app = angular.module('myApp', ['ionic']);
...
@iamjason
iamjason / us-states-array
Created December 29, 2014 01:31
Swift US States Array
let state = [ "AK - Alaska",
"AL - Alabama",
"AR - Arkansas",
"AS - American Samoa",
"AZ - Arizona",
"CA - California",
"CO - Colorado",
"CT - Connecticut",
"DC - District of Columbia",
"DE - Delaware",
@hissy
hissy / gist:7352933
Created November 7, 2013 11:07
[WordPress] Add file to media library programmatically
<?php
$file = '/path/to/file.png';
$filename = basename($file);
$upload_file = wp_upload_bits($filename, null, file_get_contents($file));
if (!$upload_file['error']) {
$wp_filetype = wp_check_filetype($filename, null );
$attachment = array(
'post_mime_type' => $wp_filetype['type'],
'post_parent' => $parent_post_id,
@WPsites
WPsites / editor-style.css
Created October 23, 2012 10:19
WordPress tinymce style dropdown
/*
editor styles
*/
.Bold{
font-weight:bold;
}
.Medium{
@oodavid
oodavid / README.md
Last active April 6, 2024 18:45 — forked from aronwoost/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/