Skip to content

Instantly share code, notes, and snippets.

package com.danielgek.webclient.controllers;
import com.opensymphony.xwork2.ModelDriven;
import org.apache.struts2.rest.DefaultHttpHeaders;
import org.apache.struts2.rest.HttpHeaders;
import org.apache.struts2.rest.RestActionSupport;
/**
* Created by danielgek on 26/11/15.
*/

SD

Pequeno resumo de sd

Java Threads

Multithreaded Program

@danielgek
danielgek / ngrxintro.md
Created March 31, 2017 13:05 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

#Comprehensive Introduction to @ngrx/store By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

@danielgek
danielgek / _app-common.scss
Last active April 19, 2017 11:33
SASS WEBPACK NATIVESCRIPT
@import '~nativescript-theme-core/scss/light';
@import '~/variables';
$background: $primary;
// ActionBar
$ab-background: $primary;
$ab-color: white ;
@danielgek
danielgek / CustomTransition.ts
Last active April 6, 2019 09:31
Custom nativescript android page transition
import * as transition from "ui/transition/transition";
import * as platform from "platform";
import lazy from "utils/lazy";
const screenWidth = lazy(() => platform.screen.mainScreen.widthPixels);
const screenHeight = lazy(() => platform.screen.mainScreen.heightPixels);
let interpolator = lazy(() => new android.view.animation.AccelerateDecelerateInterpolator());
export class CustomTransition extends transition.Transition {
private _direction: string;
import * as application from 'application';
import { Color } from 'color';
let window = application.android.foregroundActivity.getWindow();
window.setStatusBarColor(new Color(50, 0, 0, 0).android);
import * as frameModule from 'ui/frame';
frameModule.topmost().ios.controller.navigationBar.barStyle = 1;// 1 == white, 0 == black
.action-bar {
 background-color: red;
 color: white;
}
import * as application from ‘application’;
import { Color } from ‘color’;
let window = application.android.foregroundActivity.getWindow();
window.setStatusBarColor(new Color('red').android);
.action-bar {
 padding-top: 24; 
}