Skip to content

Instantly share code, notes, and snippets.

View esgy's full-sized avatar
🏠
Working from home

Sorin Gitlan esgy

🏠
Working from home
View GitHub Profile
@esgy
esgy / angular-slick-directive
Created August 4, 2014 07:23
Angular SlickJs directive with reinit support
'use strict';
angular.module('app')
.directive('sgSlick', ['$timeout', function ($timeout) {
return {
restrict: 'AE',
scope: {
images: '=',
// Utility
if (typeof Object.create !== 'function') {
Object.create = function (obj) {
"use strict";
function F() {}
F.prototype = obj;
return new F();
};
}
<?php
/**
* Plugin Name: p47 Custom Post Types
* Plugin URI: http://point47.com
* Description: Demo for custom Post types
* Version: 1.0
* Author: Sorin Gitlan
* Author URI: http://point47.com
*/
<?php
/**
* Plugin Name: p47 Options
* Plugin URI: http://point47.com
* Description: demo a options papge
* Version: 1.0
* Author: Sorin Gitlan
* Author URI: http://point47.com
*
* Use get_option('p47_plugin_options') in the template to access the saved variables.
<?php
/**
* Plugin Name: p47 Cron Job
* Plugin URI: http://point47.com
* Description: demo for a running cron job
* Version: 1.0
* Author: Sorin Gitlan
* Author URI: http://point47.com
*/
<?php
/**
* Plugin Name: p47 Twitter Widget
* Plugin URI: http://point47.com
* Description: Displays any message designated
* Version: 1.0
* Author: Sorin Gitlan
* Author URI: http://point47.com
*/
<?php
/**
* Plugin Name: Twitter Shower
* Plugin URI: http://esgy.eu
* Description: Simple shortcode
* Version: 1.0
* Author: Sorin Gitlan
* Author URI: http://esgy.eu
*/
<?php
/**
* Plugin Name: Messager Widget
* Plugin URI: http://point47.com
* Description: Displays any message designated
* Version: 1.0
* Author: Sorin Gitlan
* Author URI: http://point47.com
*/
@esgy
esgy / Contract Killer 3.md
Created December 8, 2012 11:40 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.