Skip to content

Instantly share code, notes, and snippets.

View PoslinskiNet's full-sized avatar
🐹
#TomsterOnTour

Dawid Pośliński PoslinskiNet

🐹
#TomsterOnTour
View GitHub Profile
@PoslinskiNet
PoslinskiNet / RadialGradientView.h
Created June 9, 2013 11:00
Simple way how to achieve Radial Gradient View in Objective-C
#import <UIKit/UIKit.h>
@interface RadialGradientView : UIView
@end
@PoslinskiNet
PoslinskiNet / LinearGradientView.h
Created June 9, 2013 11:02
Simple way how to achieve Linear Gradient View in Objective-c
#import <UIKit/UIKit.h>
@interface LinearGradientView : UIView
@end
@PoslinskiNet
PoslinskiNet / UIHelperColors.m
Created October 3, 2013 12:28
Colors helper
#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>
@interface FTUIHelper : NSObject
+ (UIImage *)createImageFromColor:(UIColor *)color;
+ (UIColor *)colorFromHexRGB:(NSString *)inColorString
@end
@PoslinskiNet
PoslinskiNet / gist:70d75abfd2afbbd97458
Created July 14, 2015 04:44
Arduino Uno with ESP8622 - light on/off monitor and notify remote API end-point
/*
Photoresistor Part (Connection)
http://nakkaya.com/images/post/photoresistor.png
Connect the photoresistor one leg to pin 0, and pin to +5V
Connect a resistor (around 10k is a good value, higher
values gives higher readings) from pin 0 to GND.
----------------------------------------------------
@PoslinskiNet
PoslinskiNet / .travis.yml
Last active May 1, 2017 18:33
Sample QA gems setup for you CI - Part 1
env:
global:
- COVERAGE=true
- RAILS_ENV=test
before_script:
- bundle exec rubocop
- bundle exec bundle-audit check — update
- bundle exec license_finder
script:
- bundle exec rspec spec
@PoslinskiNet
PoslinskiNet / SPEC.md
Last active May 4, 2017 09:10
Moving Motivators Application

Moving Motivators App

Based on https://management30.com/practice/moving-motivators/

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
PoslinskiNet / read-directory.js
Created July 2, 2017 20:34
Ember Electron Read directory service - it fetches list of directories for the given path
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
@PoslinskiNet
PoslinskiNet / controllers.application.js
Last active March 11, 2021 17:05
Ember-Pell Addon demo
import Ember from 'ember';
export default Ember.Controller.extend({
value: '<h1>Demo header</h1>This is some <i>italic</i> text.'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
steps: Ember.computed(function(){
return [
{
element: $('#step1'),
intro: 'Step 1!'
},