Skip to content

Instantly share code, notes, and snippets.


Dawid Pośliński PoslinskiNet

Block or report user

Report or block PoslinskiNet

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
PoslinskiNet / RadialGradientView.h
Created Jun 9, 2013
Simple way how to achieve Radial Gradient View in Objective-C
View RadialGradientView.h
#import <UIKit/UIKit.h>
@interface RadialGradientView : UIView
PoslinskiNet / LinearGradientView.h
Created Jun 9, 2013
Simple way how to achieve Linear Gradient View in Objective-c
View LinearGradientView.h
#import <UIKit/UIKit.h>
@interface LinearGradientView : UIView
View UIHelperColors.m
#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>
@interface FTUIHelper : NSObject
+ (UIImage *)createImageFromColor:(UIColor *)color;
+ (UIColor *)colorFromHexRGB:(NSString *)inColorString
PoslinskiNet / .travis.yml
Last active May 1, 2017
Sample QA gems setup for you CI - Part 1
View .travis.yml
- RAILS_ENV=test
- bundle exec rubocop
- bundle exec bundle-audit check — update
- bundle exec license_finder
- bundle exec rspec spec
PoslinskiNet /
Last active May 4, 2017
Moving Motivators Application

Moving Motivators App

Based on

Guest: not logged user Member: logged user

  • Application sourcecode should be available in your Github repository
  • App is accessible for guests and members.
  • Guest can access Menu screen with the list of motivator decks created by members.
  • Guest can register & login (to simplify for end-users you can use google auth - optional)
PoslinskiNet / read-directory.js
Created Jul 2, 2017
Ember Electron Read directory service - it fetches list of directories for the given path
View read-directory.js
import Ember from 'ember';
const fs = requireNode('fs')
const path = requireNode('path')
export default Ember.Service.extend({
* Get list of the directories for the given path
* @param {String} absolutePath absolute path
* @return {Array} List of directories in the given path
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
steps: Ember.computed(function(){
return [
element: $('#step1'),
intro: 'Step 1!'
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'button',
mouseLeave() {
mouseEnter() {

On the existing the application from the dev-path

  1. Make helper and use it in hbs that gets 2 attributes element and array of elements. It check that element is present in the array of elements and returns condition result as a boolean.
  2. Add-ons: Refactor one of controllers with ember-parachute
  3. Add-ons: Basic usage of ember-can
You can’t perform that action at this time.