Skip to content

Instantly share code, notes, and snippets.

View wtrocki's full-sized avatar
🚀
Making API Backends an Better Place!

Wojciech Trocki wtrocki

🚀
Making API Backends an Better Place!
View GitHub Profile

How to contribute

Thank you for your interest in contributing to the FeedHenry project. We want keep this process as easy as possible so we've outlined a few guidelines below. For more information about the FeedHenry project, visit our website.

Asking for help

Whether you're contributing a new feature or bug fix, or simply submitting a

import hudson.security.*
// Provide username and password here
def userName = "";
def password = "";
// Do not edit script after this line
def instance = Jenkins.getInstance();
def strategy = instance.getAuthorizationStrategy();
@wtrocki
wtrocki / fastline.groovy
Created January 6, 2017 11:51
Fastline IOS build
node('ios') {
stage 'Checkout'
dir('app') {
stage 'Check Gemfile'
sh "bundle install"
//stage 'Unit Test'
//sh "bundle exec fastlane test"
if (env.BUILD_TYPE == "release") {
@wtrocki
wtrocki / SMBDIS.ASM
Created January 29, 2017 19:08 — forked from 1wErt3r/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger ([email protected])
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
@wtrocki
wtrocki / ModRain Documentation.md
Last active April 10, 2017 13:25
Modrain - Modular architecture framework for modular client and server applications written in javascript/typescript.

ModRain Build Status

img

ModRain (Module Rain) modular architecture framework for modular client and server applications written in javascript/typescript. Use Modrain to implement microservices architecture for client and server side javascript apps.

Idea

@wtrocki
wtrocki / Raincatcher-Code-Style.xml
Last active March 29, 2017 13:56
Code style for formatter used in Raincatcher projects. Formatting should be compatible with eslint styles
<code_scheme name="FH-Style">
<option name="AUTODETECT_INDENTS" value="false" />
<option name="OTHER_INDENT_OPTIONS">
<value>
<option name="INDENT_SIZE" value="2" />
<option name="CONTINUATION_INDENT_SIZE" value="2" />
<option name="TAB_SIZE" value="2" />
<option name="USE_TAB_CHARACTER" value="false" />
<option name="SMART_TABS" value="false" />
<option name="LABEL_INDENT_SIZE" value="0" />
import {Get, Post, Route, Body, Query, Header, Path, SuccessResponse, Controller } from 'tsoa';
import {UserService} from '../services/userService';
import {User, UserCreationRequest} from '../models/user';
@Route('Users')
export class UsersController extends Controller {
@Get('{id}')
public async getUser(id: number, @Query() name: string): Promise<User> {
return await new UserService().get(id);
}
@wtrocki
wtrocki / mongose.ts
Created May 17, 2017 11:15
Example of mongose typescript interface.
export interface IWorkorder extends mongoose.Document, HasId {
id: string;
somethingElse?: number;
};
export const WorkorderSchema = new mongoose.Schema({
id: {type:String, required: true},
somethingElse: Number,
});
@wtrocki
wtrocki / memberslist.js
Created May 18, 2017 14:39
Simple typescript list of members for file.
console.log("list of methods");
//File to typescript
var index = require("./index.js");
var allKeys = Object.keys(index);
var keys = JSON.stringify(allKeys);
_.each(allKeys,function(key){
console.log("Field " + key + " ", Object.keys(index[key]));
// OUR CODE
interface Workorder {
field: string
}
interface WorkorderService {
create(workorder: Workorder):void
}