Skip to content

Instantly share code, notes, and snippets.

View abbood's full-sized avatar
💭
Leading Village.do tech team

Abdullah Bakhach abbood

💭
Leading Village.do tech team
View GitHub Profile
@abbood
abbood / gist:9250764
Created February 27, 2014 14:09
the way i create restkit model
//
// Model.m
// TNN
//
// Created by Abdullah Bakhach on 11/20/13.
// Copyright (c) 2013 larochesoft. All rights reserved.
//
#import <CoreData/CoreData.h>
#import "RKManagedObjectStore.h"
//
// Model.h
// TNN
//
// Created by Abdullah Bakhach on 11/20/13.
// Copyright (c) 2013 larochesoft. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <RestKit/RestKit.h>
@abbood
abbood / gist:9250867
Created February 27, 2014 14:16
EpisodesDataSource.m
//
// EpisodesDataSource.m
// TNN
//
// Created by Ahmad Mehio on 2/26/14.
// Copyright (c) 2014 larochesoft. All rights reserved.
//
#import <RestKit/RestKit.h>
#import <QuartzCore/QuartzCore.h>
@abbood
abbood / gist:9266666
Created February 28, 2014 07:08
primitive accessor methods
//
// News.m
//
//
// Created by Abdullah Bakhach on 12/5/13.
//
//
#import "News.h"
#import "NSString+Addons.h"
@abbood
abbood / gist:9988503
Created April 5, 2014 07:23
composer.json
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"require-dev": {
"way/generators": "2.*"
},
"require": {
"laravel/framework": "4.0.*"
},
@abbood
abbood / gist:9988511
Created April 5, 2014 07:25
composer update error
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove laravel/framework 4.0.x-dev
- Conclusion: don't install illuminate/support 4.2.x-dev
- Conclusion: don't install laravel/framework 4.0.x-dev
- Conclusion: don't install illuminate/support 4.1.x-dev
- Conclusion: don't install laravel/framework v4.0.10
- Conclusion: don't install laravel/framework v4.0.9
- Conclusion: don't install laravel/framework v4.0.8
@abbood
abbood / composer.json.lock
Created April 5, 2014 07:36
composer.json.lock
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
],
"hash": "999d059113bf3fb48afd2c6339f88e3f",
"packages": [
{
"name": "classpreloader/classpreloader",
"version": "dev-master",
@abbood
abbood / example.js
Last active August 29, 2015 13:58
how to declare abstract classes within object declaration javascript
// the way it's done in the question (http://stackoverflow.com/questions/16963111/javascript-class-inheritance-for-functions/16963189#16963189)
MyBase = function() {
this.m_Stuff = 0; // etc
};
MyBase.prototype.MySuperFunction = function (arg1) {
alert("Hello" + arg1);
};
// how i would like to do it
MyBase = function() {
@abbood
abbood / gist:10358597
Created April 10, 2014 08:55
attempt to override tinyMCE settings
tinymce.init({
selector: "textarea",
menubar:false,
statusbar: false,
});
tinymce.init({
selector: "textarea#comment_box",
toolbar: false
});
@abbood
abbood / gist:10530622
Created April 12, 2014 11:15
podfile for mailcore2
PODS:
- ctemplate (2.2.1)
- icu4c (51.2)
- libetpan (1.3.pre2):
- libsasl2
- libsasl2 (2.1.25)
- MailCore2 (0.3.pre1):
- ctemplate
- icu4c
- libetpan