Skip to content

Instantly share code, notes, and snippets.

View jacmoe's full-sized avatar

Jacob Moena jacmoe

View GitHub Profile
jacmoe / gist:4280976
Created December 13, 2012 23:07
HTML: Template
<!doctype html>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
jacmoe / gulpfile.js
Created November 1, 2015 11:22 — forked from chriskjaer/gulpfile.js
Gulp recipe: Jade, Sass, Livereload and static server
var gulp = require('gulp'),
gutil = require('gulp-util'),
sass = require('gulp-sass'),
csso = require('gulp-csso'),
uglify = require('gulp-uglify'),
jade = require('gulp-jade'),
concat = require('gulp-concat'),
livereload = require('gulp-livereload'), // Livereload plugin needed:
tinylr = require('tiny-lr'),
express = require('express'),
-use yii\helpers\Html
-use yii\bootstrap\Nav
-use yii\bootstrap\NavBar
-use frontend\assets\AppAsset
-use frontend\widgets\Alert
-use yii\widgets\Breadcrumbs
doctype html
jacmoe / connectHTMLelements_SVG.png
Created December 6, 2015 13:47 — forked from alojzije/connectHTMLelements_SVG.png
Connect two elements / draw a path between two elements with SVG path (using jQuery)
jacmoe / xampp_proxy_server_config
Created December 8, 2015 09:28 — forked from ralphcrisostomo/xampp_proxy_server_config
XAMPP Proxy Server Config
1. Open /Applications/XAMPP/etc/httpd.conf
2. Enable the following Modules by removing the # at the front of the line.
- LoadModule rewrite_module modules/
- LoadModule proxy_module modules/
- LoadModule proxy_http_module modules/
3. Copy and Paste below to the bottom of httpd.conf
# Implements a proxy/gateway for Apache.
# Ben's Magical Perceptron
def dot_product(a, b):
return sum([a[i]*b[i] for i in range(len(a))])
def decision( x, w, theta ):
return (dot_product(x, w) > theta)
/**Display Bitbucket wiki pages with SimpleWiki parser.
* A rough script for refactoring.
* @copyright Copyright Nick Freear, 29 April 2011.
* @uses
ini_set('display_errors', 1);
header('Content-Type: text/html; charset=utf-8');
jacmoe /
Created February 22, 2016 17:10 — forked from gka/
PHP Endpoint for Github Webhook URLs

PHP Endpoint for Github Webhook URLs

If you love deploying websites using Github, but for some reason want to use your own server, this script might be exactly what you need.

  1. Put github.php somewhere on your PHP-enabled web server, and make it accessible for the outside world. Let's say for now the script lives on
jacmoe / links-mixins.scss
Created March 8, 2016 17:09 — forked from ricardozea/links-mixins.scss
Sass mixin for links
jacmoe / .gitconfig
Created March 9, 2016 13:49 — forked from shadowhand/.gitconfig
You just need a bigger hammer!
fixlock = ! git reset HEAD -- composer.lock && git co -- composer.lock && composer update --no-scripts && git add composer.lock