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
| 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
| #!/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
| redis-cli KEYS "prefix:*" | xargs redis-cli DEL |
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
| #!/bin/bash | |
| # | |
| # MongoDB Backup Script | |
| # VER. 0.1 | |
| # Note, this is a lobotomized port of AutoMySQLBackup | |
| # (http://sourceforge.net/projects/automysqlbackup/) for use with | |
| # MongoDB. | |
| # | |
| # This program is free software; you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by |
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.vast.example | |
| import java.net.InetSocketAddress | |
| import java.util.UUID | |
| import java.util.concurrent.{Executors, TimeUnit} | |
| import com.google.common.base.Splitter | |
| import com.twitter.finagle.http.Http | |
| import com.twitter.finagle.builder.{Server, ServerBuilder} | |
| import com.twitter.finagle.service.TimeoutFilter | |
| import com.twitter.finagle.{Service, SimpleFilter, GlobalRequestTimeoutException} |
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
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>org.acme.test</groupId> | |
| <artifactId>nodejs-test</artifactId> | |
| <version>0.0.1-SNAPSHOT</version> | |
| <name>nodejs-test</name> | |
| <description>NodeJS Test Project</description> | |
| <packaging>jar</packaging> |
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
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>org.acme.test</groupId> | |
| <artifactId>nodejs-dependency</artifactId> | |
| <version>0.0.1-SNAPSHOT</version> | |
| <name>nodejs-dependency</name> | |
| <description>NodeJS Dependency Project - to be references in nodejs-test</description> | |
| <packaging>jar</packaging> |
OlderNewer