This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Startup script for jetty under *nix systems (it works under NT/cygwin too). | |
# To get the service to restart correctly on reboot, uncomment below (3 lines): | |
# ======================== | |
# chkconfig: 3 99 99 | |
# description: Jetty 7 webserver | |
# processname: jetty | |
# ======================== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Startup script for jetty under *nix systems (it works under NT/cygwin too). | |
# To get the service to restart correctly on reboot, uncomment below (3 lines): | |
# ======================== | |
# chkconfig: 3 99 99 | |
# description: Jetty 7 webserver | |
# processname: jetty | |
# ======================== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http { | |
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m; | |
proxy_temp_path /var/tmp; | |
include mime.types; | |
default_type application/octet-stream; | |
sendfile on; | |
keepalive_timeout 65; | |
gzip on; | |
gzip_comp_level 6; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// It's assumed this function is defined in a class extending 'ImageView' | |
void addEffectBrightness(){ | |
float brightness = mBrightnessValue; | |
mCm = new ColorMatrix(); | |
mCm.set(new float[] { 1, 0, 0, 0, brightness, | |
0, 1, 0, 0,brightness, | |
0, 0, 1, 0, brightness, | |
0, 0, 0, 1, 0 }); | |
mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.strumsoft.api; | |
import java.io.Serializable; | |
import java.util.Date; | |
/** | |
* @author "Animesh Kumar <[email protected]>" | |
* | |
*/ | |
public class Session implements Serializable { |
NewerOlder