Skip to content

Instantly share code, notes, and snippets.

View akillamac's full-sized avatar

Renaud Bouissière akillamac

View GitHub Profile
@Gurdeep0602
Gurdeep0602 / AppStoryboard.swift
Last active April 2, 2024 09:54
AppStoryboard enumeration
//
// AppStoryboards.swift
// AppStoryboards
//
// Created by Gurdeep on 15/12/16.
// Copyright © 2016 Gurdeep. All rights reserved.
//
import Foundation
import UIKit
@Arvkon
Arvkon / LICENSE
Last active May 16, 2018 16:13 — forked from chriseidhof/LICENSE
A tiny networking library
Copyright 2015 Chris Eidhof
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHE
anonymous
anonymous / index.html
Created April 11, 2016 13:12
Draggables and droppables demo - Interface plugin for jQuery // source http://jsbin.com/vamarocuba
<html>
<head>
<script src="http://interface.eyecon.ro/jquery/jquery.js"></script> <!-- 1.1.2 -->
<meta http-equiv="Content-Language" content="en" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Draggables and droppables demo - Interface plugin for jQuery</title>
<script type="text/javascript" src="http://interface.eyecon.ro/interface/interface.js"></script>
import UIKit
extension UIImage {
// colorize image with given tint color
// this is similar to Photoshop's "Color" layer blend mode
// this is perfect for non-greyscale source images, and images that have both highlights and shadows that should be preserved
// white will stay white and black will stay black as the lightness of the image is preserved
func tint(tintColor: UIColor) -> UIImage {
@amritk
amritk / dragdrop.js
Last active April 19, 2017 18:33
Trying to get this dragdrop from this codrops article working on the latest version of dragabilly
/**
* dragdrop.js
* http://www.codrops.com
*
* Licensed under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*
* Copyright 2014, Codrops
* http://www.codrops.com
*
@mchirico
mchirico / VCMap.swift
Created November 2, 2015 22:28
Quick and dirty...creating a map in swift, using MKMapView
import UIKit
import MapKit
class VCMap: UIViewController {
@IBOutlet weak var map: MKMapView!
override func viewDidLoad() {
import UIKit
// MARK: Method chaining
class MethodChaining {
func fetchImage() -> Fetch<UIImage> {
let fetch = Fetch<UIImage>()
if let image = UIImage(named: "cat.jpg") {
if let succeed = fetch.succeed {
// never called because its nil
@mchirico
mchirico / TableViewController.swift
Created October 19, 2015 16:06
TableViews with animation...trying to come up with something simple here, or easy reference. This needs to be cleaned up.
//
// TableViewController.swift
// TableView
//
// Created by Mike Chirico on 10/18/15.
// Copyright © 2015 Mike Chirico. All rights reserved.
//
// http://www.raywenderlich.com/63089/cookbook-moving-table-view-cells-with-a-long-press-gesture
// Delete:
@amochohan
amochohan / 01_Laravel 5 Simple ACL manager_Readme.md
Last active March 21, 2025 14:47
Laravel 5 Simple ACL - Protect routes by an account / role type

#Laravel 5 Simple ACL manager

Protect your routes with user roles. Simply add a 'role_id' to the User model, install the roles table and seed if you need some example roles to get going.

If the user has a 'Root' role, then they can perform any actions.

Installation

Simply copy the files across into the appropriate directories, and register the middleware in App\Http\Kernel.php

@chriseidhof
chriseidhof / LICENSE
Last active July 16, 2019 13:14
A tiny networking library
Copyright 2015 Chris Eidhof
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHE