Skip to content

Instantly share code, notes, and snippets.

View KOWLOR's full-sized avatar

Malik Dellidj KOWLOR

  • Freelance
  • Lille, France
View GitHub Profile
import UIKit
class TodosViewController: UIViewController, UINavigationBarDelegate {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
override func viewDidAppear(animated: Bool) {
//If you have a Bridging-Header:
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKLoginKit/FBSDKLoginKit.h>
//In your AppDelegate:
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [String: AnyObject]?) -> Bool {
//App launch code
FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions)
//Optionally add to ensure your credentials are valid:
// Include gulp
var gulp = require('gulp');
var plumber = require('gulp-plumber');
// Include Our Plugins
var sass = require('gulp-sass'),
minifyCSS = require('gulp-minify-css'),
autoprefixer = require('gulp-autoprefixer'),
gutil = require('gulp-util');
// Block Grid
// Technique adapted from Foundation 5 for Bootstrap 3.
// https://github.com/zurb/foundation/blob/f755d8704123f86c281ede0b171881e2672f150d/scss/foundation/components/_block-grid.scss
// Original LESS Version by Christopher Mitchell (https://gist.github.com/ChrisTM)
// Converted to SCSS by Rasmus Jürs (https://github.com/Jursdotme)
[class*="block-grid-"] {
display: block;
margin: -($grid-gutter-width/2);
padding: 0;
@KOWLOR
KOWLOR / gist:433edb163e8518597b8a
Created July 21, 2015 07:19
Remove all .git files, recursively.
find . | grep .git | xargs rm -rf
@KOWLOR
KOWLOR / gist:1c1e6ec8e19a9ee0954f
Created July 23, 2015 09:02
Middleman retina_image_tag
helpers do
def retina_image_tag(default_name, options={})
retina_name = default_name.gsub(%r{\.\w+$}, '@2x\0')
image_tag(default_name, options.merge('data-interchange' => "[#{asset_path(:images, retina_name)}, (retina)]"))
end
end
@charset "UTF-8";
@import
"foundation-sites/scss/util/util",
"settings",
"foundation-sites/scss/foundation";
@include foundation-global-styles;
@include foundation-grid;
@include foundation-typography;
@KOWLOR
KOWLOR / convert sass to scss
Created November 22, 2016 13:12 — forked from pedrogpimenta/convert sass to scss
Convert SASS to SCSS and delete .sass files (applies to all files in current folder)
sass-convert -R ./ -F sass -T scss && rm *.sass
@KOWLOR
KOWLOR / a.rb
Created January 31, 2017 13:23 — forked from ahoward/a.rb
mix and match sprockets, bower, and npm modules with impunity (in middleman / rails is similar)
# this directive processor enhances sprockets with the ability to load bower
# and npm packages
#
# usage is simple
#
# //= browserify 'my_library'
# window.MyLibrary
# browserify.modules['my_library']
#
# if you would like to to control the name of what's loaded do this