Skip to content

Instantly share code, notes, and snippets.

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

Saleh Souzanchi zoghal

🏠
Working from home
View GitHub Profile
@lamberta
lamberta / RemoteTCP.py
Created April 16, 2010 02:16
RemoteTCP - FontLab server
#===============================================================================
# RemoteTCP.py, v0.1, released 01.26.08.
# Installation notes, usage and commentary:
# http://lamberta.posterous.com/remotetcp-for-robofab-and-fontlab
#
# Copyright (c) William Lamberta, <www.lamberta.org>
# Released under the BSD License,
# see www.opensource.org/licenses/bsd-license.php for details.
# Includes code from RoboFab <www.robofab.org>,
# Copyright (c) The RoboFab Developers, Just van Rossum, Tal Leming, Erik van Bloklandwhich.
from robofab.tools.remoteTCP import FontLabServer
myServer = FontLabServer()
myServer.run()
/*!
* jQuery TextChange Plugin
* http://www.zurb.com/playground/jquery-text-change-custom-event
*
* Copyright 2010, ZURB
* Released under the MIT License
*/
(function ($) {
$.event.special.textchange = {
@WyriHaximus
WyriHaximus / auto_helper.php
Created October 31, 2010 10:42
Added some code to make it work with plugins
<?php
/**
* AutoHelperView
* Provides automatic helper loading for views.
*
* @author Joe Beeson <jbeeson@gmail.com>
* @auther Cees-Jan Kiewiet <ceesjank@gmail.com>
*/
class AutoHelperView extends View {
@chrisbloom7
chrisbloom7 / mod_xsendfile_example.php
Created March 4, 2011 04:27
Example of using mod_xsendfile to send a file as a download.
<?php
/**
* In your Apache conf file, set the following to enable XSendfile:
*
<Directory "/">
# This should be handled by the XSendFile module, but a bug in 0.11.1 prevented it from being set properly.
EnableSendfile on
XSendFile on
@josegonzalez
josegonzalez / readme.md
Last active November 17, 2018 16:16
Example Readme for CakePHP plugins that use MIT license

[PLUGIN NAME] Plugin

[ONE LINE DESCRIPTION OF PROJECT]

Background

[A PARAGRAPH DESCRIBING WHY YOU BUILT THIS]

[ANOTHER PARAGRAPH DESCRIBING YOUR IMPETUS FOR RELEASING THIS]

@marksteve
marksteve / Backbone.View.Autocomplete.js
Created May 3, 2011 10:54
Backbone View for jQuery UI Autocomplete inputs
var Autocomplete = Backbone.View.extend({
render: function() {
var choices = this.options.choices,
selected = this.options.selected,
iterator = this.options.iterator,
label = this.options.label,
allowDupes = this.options.allowDupes,
$el = $(this.el);
$el.autocomplete({
source: function(request, response) {
@ebryn
ebryn / output.html
Created June 25, 2011 18:12 — forked from gmoeck/output.html
table_example.handlebars
<table>
<tbody tabindex="-1" id="sc201" class="">
<tr tabindex="-1" id="sc210" class="" style="">
<td tabindex="-1" id="sc214" class="" style=""><span tabindex="-1" id="sc216" class="" style="">something</span></td>
<td tabindex="-1" id="sc220" class="" style=""><span tabindex="-1" id="sc221" class="" style="">new</span></td>
</tr>
<tr tabindex="-1" id="sc225" class="" style="">
<td tabindex="-1" id="sc228" class="" style=""><span tabindex="-1" id="sc229" class="" style="">something</span></td>
<td tabindex="-1" id="sc232" class="" style=""><span tabindex="-1" id="sc233" class="" style="">else</span></td>
</tr>
@jish
jish / cal.js
Created September 20, 2011 05:44
Backbone namespacing
// re: http://japhr.blogspot.com/2011/09/beginning-namespacing-in-backbonejs.html
(function(exports) {
var Cal = exports.Cal = {};
Cal.Appointment = Backbone.Model.extend();
Cal.Appointments = Backbone.Collection.extend();
Cal.AppointmentView = Backbone.View.extend();
@bushxnyc
bushxnyc / gist:1315133
Created October 26, 2011 01:25
oneTomany Relationship in Sproutcore
App.Category = SC.Record.extend({
name: SC.Record.attr(String),
parent: SC.Record.toOne('App.Category'),
lft: SC.Record.attr(Number),
rgt: SC.Record.attr(Number),
itemType: SC.Record.attr(String),
listings: SC.Record.toMany('App.Listing', {inverse: "category"}),
//Tree Properties
treeItemIsExpanded: NO,