Skip to content

Instantly share code, notes, and snippets.

View acedesigns's full-sized avatar

Anele 'ace' M acedesigns

View GitHub Profile
@acedesigns
acedesigns / controller
Created April 29, 2015 08:30
Google Maps with Multiple Markers
$scope.events = [{
title: 'Scenic KZN - Garden Route',
anothetInfo : 'Something',
type: 'important',
bookingMaker : 'Camila Levin',
bookingMakerComp : '80Days',
/*startsAt: '2015-04-22T12:30:00.000Z',*/
startsAt: '2015-04-22T11:33:33.000Z',
endsAt: '2015-04-22T13:33:33.000Z',
editable: true,
@acedesigns
acedesigns / gitAutomator.sh
Last active August 29, 2015 14:26
A simple script to try and Automate the Git process of changing directory, Statuses, Pulling ... etc
#!/bin/bash
# https://gist.github.com/acedesigns/484dfe5345f67ff8d6dd
# Read more about directories in bash scriptitng
# http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
# PURPOSE :: To try and automate the git commands.
# We will change to our project folder and then check for changes to any file
# within the folder structure.
@acedesigns
acedesigns / .bowerrc
Last active October 2, 2015 16:35
A run down of YoMan generator for scaffolding a static App. Just wanted to learn how it came together. Just run npm install && grunt serve
{
"directory": "app/vendor"
}
@acedesigns
acedesigns / Gulpfile.js
Created November 26, 2015 13:30
Example gulpfile.js
// Load plugins
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
imagemin = require('gulp-imagemin'),
rename = require('gulp-rename'),
clean = require('gulp-clean'),
@acedesigns
acedesigns / functions.php
Last active April 19, 2016 22:17
A generic functions file for WP theme, When creating custom Post Types
<?php
/*
Shout Out to :
http://stackoverflow.com/questions/27896131
http://webexplorar.com/wordpress-create-custom-post-types-with-tags-and-categories
*/
add_action ('init', 'register_custom_post_type_event');
function register_custom_post_type_event() {
$labels = array(
/* =======================================================
* Custom Filters
* =======================================================
*/
(function() {
'use strict';
angular.module('app')
.filter('parag', function () {
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages
@acedesigns
acedesigns / ugrage.sh
Created June 3, 2017 11:29
Upgrading Your PHP 5.5.9-1ubuntu4.21 to PHP 7.0
# This is not an executable file but commands to run on the terminal
# In a somewhat order
`sudo add-apt-repository ppa:ondrej/php`
`sudo apt-get update`
`sudo apt-get install php-mbstring php7.0-mbstring php-gettext libapache2-mod-php7.0`
`sudo apt-get install php7.0-xml`
#!/bin/sh
echo "Hello world"
# Remove node that was installed via Homebrew
# https://stackoverflow.com/a/11178106
# install Node via NVM
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.4/install.sh | bash
# https://www.versioneye.com/nodejs/cordova/6.5.0
@acedesigns
acedesigns / php_modules.php
Last active November 16, 2017 16:42
Some PHP Modules one Should Always have On Their Server
<?php
// sudo apt-get install php7.0-gd
// sudo apt-get install php-curl php-xml php-gettext php-cgi php-mysql libcurl3 libcurl3-dev php-mbstring php7.0-mbstring php-gettext -y
// apt-get install php7.0 php-curl libapache2-mod-php7.0 libcurl3 libcurl3-dev php7.0-mysql php7.0-xml php7.0-gd php7.0-zip php7.0-mcrypt php7.0-mbstring php7.0-cli php7.0-common
// https://askubuntu.com/a/640900/625311