text:
package org.cboard.kylin.model;

import com.alibaba.fastjson.JSONObject;
import org.cboard.kylin.KylinDataProvider;
import org.springframework.http.ResponseEntity;
import org.springframework.http.client.support.BasicAuthorizationInterceptor;
import org.springframework.web.client.RestTemplate;

import java.util.Map;

/**
 * Created by zyong on 2017/12/11.
 */
public class KylinModelFactory {

    public static KylinBaseModel getKylinModel(Map<String, String> dataSource, Map<String, String> query) throws Exception {
        KylinBaseModel model = null;
        String modelName = query.get(KylinDataProvider.DATA_MODEL);
        String serverIp = dataSource.get(KylinDataProvider.SERVERIP);
        String username = dataSource.get(KylinDataProvider.USERNAME);
        String password = dataSource.get(KylinDataProvider.PASSWORD);

        RestTemplate restTemplate = new RestTemplate();
        restTemplate.getInterceptors().add(new BasicAuthorizationInterceptor(username, password));
        ResponseEntity<String> restful = restTemplate.getForEntity(
                "http://" + serverIp + "/kylin/api/model/{modelName}", String.class, modelName);
        JSONObject modelJson = JSONObject.parseObject(restful.getBody());

        String kylinVersion = modelJson.getString("version");
        String[] kvs = kylinVersion.split("\\.");
        String bigVersion = kvs[0];
        if ("1".equals(bigVersion)) {
            model = new KylinModel1x(modelJson, dataSource, query, kvs);
        } else if ("2".equals(bigVersion)) {
            model = new KylinModel2x(modelJson, dataSource, query, kvs);
        }
        return model;
    }
}


text:
package samples.data;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author Rob Winch
 */
@Repository
public interface MessageRepository extends JpaRepository<Message,Long> {
}

redpajama_set_name: RedPajamaGithub


text:
// server
package easyvpn

import (
	"bytes"
	//	"context"
	"crypto/sha256"
	"fmt"
	"io/ioutil"
	"os"
	"os/exec"
	//"os/signal"
	"path"
	"runtime"
	//"strconv"
	"strings"

	"github.com/duncanjdavis/simpleargs"
	"golang.org/x/crypto/ssh"
)

func (a *App) ServerUpload(args simpleargs.Args) error {
	return nil
}

func (a *App) ServerRun(args simpleargs.Args) error {
	server, key, err := a.GetServerKey(args)
	if err != nil {
		return err
	}
	pre := args.Pre()
	if len(pre) < 2 {
		return fmt.Errorf("No command specified")
	}
	cmd := strings.Join(pre[1:], " ")
	return SSHHelper(server.Addr, cmd, key, os.Stdin, os.Stdout, os.Stderr)
}

func (a *App) DoServerFetch(echo bool, client string, server Server, key ssh.Signer) error {
	if client == "" {
		client = "client0"
	}
	folder := path.Join(a.ConfigDir, "client_configs",
		fmt.Sprintf("%x", sha256.Sum256([]byte(server.Addr))))
	os.MkdirAll(folder, 0700)
	buf := bytes.NewBufferString("")
	err := SSHHelper(server.Addr, fmt.Sprintf("/opt/easyvpn/get_client_config %#v",
		client), key, os.Stdin, buf, os.Stderr)
	if err != nil {
		return err
	}
	fpath := path.Join(folder, client+".ovpn")
	a.Info(echo, fpath)
	return ioutil.WriteFile(fpath, buf.Bytes(), 0600)
}

func (a *App) ServerFetch(args simpleargs.Args) error {
	echo := !args.HasFlag("q")
	server, key, err := a.GetServerKey(args)
	if err != nil {
		return err
	}
	client := args.GetString("client")
	return a.DoServerFetch(echo, client, server, key)
}

func (a *App) ServerInstall(args simpleargs.Args) error {
	server, key, err := a.GetServerKey(args)
	if err != nil {
		return err
	}
	buf := bytes.NewBufferString(a.SvrScript())
	err = SSHHelper(server.Addr, "cat > easyvpn.sh", key, buf, os.Stdout, os.Stderr)
	if err != nil {
		return err
	}
	err = SSHHelper(server.Addr, "bash easyvpn.sh -y", key, os.Stdin, os.Stdout, os.Stderr)
	if err != nil {
		return err
	}
	return a.DoServerFetch(!args.HasFlag("q"), "client0", server, key)
}

func (a *App) ServerRemove(args simpleargs.Args) error {
	server, err := a.GetServer(args)
	if err != nil {
		return err
	}
	delete(a.Servers, server.Name)
	os.RemoveAll(path.Join(a.ConfigDir, "client_configs",
		fmt.Sprintf("%x", sha256.Sum256([]byte(server.Addr)))))
	return a.SaveServersList()
}

func (a *App) ServerChange(args simpleargs.Args) error {
	server, err := a.GetServer(args)
	if err != nil {
		return err
	}
	addr := args.GetString("addr")
	if addr != "" {
		server.Addr = addr
	}
	service := args.GetString("service")
	if service != "" {
		server.Service = service
	}
	key := args.GetString("key")
	if key != "" {
		_, err := a.Keystore.Get([]byte(key))
		if err != nil {
			fp, _ := a.Keystore.GetFPByName(key)
			if fp == nil {
				return fmt.Errorf("Key '" + key + "' not found in key store. To manage the key store see 'key help'.")
			}
			key = string(fp)
		}
		server.KeyFP = key
	}
	name := args.GetString("name")
	if name != "" {
		delete(a.Servers, server.Name)
		server.Name = name
	}
	a.Servers[server.Name] = server
	return a.SaveServersList()
}

func (a *App) ServerInfo(args simpleargs.Args) error {
	server, err := a.GetServer(args)
	if err != nil {
		return err
	}
	dispservice := "(other)"
	if server.Service == "do" {
		dispservice = "Digital Ocean"
	}
	a.Info(true,
		"Address: ", server.Addr,
		"\nName: ", server.Name,
		"\nSSH Key Fingerprint: ", server.KeyFP,
		"\nService: ", dispservice)
	return nil
}

func (a *App) ServerAdd(args simpleargs.Args) error {
	pre := args.Pre()
	if len(pre) < 1 {
		return fmt.Errorf("Server address ADDR must be specified. See 'server help add'.")
	}
	addr := pre[0]
	name := args.GetString("name")
	if name == "" {
		name = a.RandomName()
	}
	key := args.GetString("key")
	if key == "" {
		fp, _ := a.Keystore.DefaultFingerprint()
		key = string(fp)
	} else {
		_, err := a.Keystore.Get([]byte(key))
		if err != nil {
			fp, _ := a.Keystore.GetFPByName(key)
			if fp == nil {
				return fmt.Errorf("Key '" + key + "' not found in key store. To manage the key store see 'key help'.")
			}
			key = string(fp)
		}
	}
	service := args.GetString("service")
	a.Servers[name] = Server{Addr: addr, Name: name, KeyFP: key, Service: service}
	return a.SaveServersList()
}

func (a *App) ServerList() error {
	a.WriteServersList(os.Stdout)
	return nil
}

func (a *App) ServerCreate(args simpleargs.Args) error {
	echo := !args.HasFlag("q")
	svc := args.GetString("service")
	if svc == "" {
		svc = "do"
	}
	if svc == "do" {
		err := a.DigitalOceanCreateDroplet(args)
		if err != nil {
			return err
		}
		if args.HasFlag("no-install") {
			return nil
		}
		var args2list []string
		args2list = append(args2list, a.DOLastCreated)
		if !echo {
			args2list = append(args2list, "-q")
		}
		return a.ServerInstall(simpleargs.Parse(args2list))
	} else {
		return fmt.Errorf("Unsupported service type: " + svc)
	}
}

func (a *App) ServerDestroy(args simpleargs.Args) error {
	serv, err := a.GetServer(args)
	if err != nil {
		return err
	}
	if serv.Service == "do" {
		err = a.DigitalOceanDestroyDroplet(args)
		if err != nil {
			return err
		}
	} else {
		return fmt.Errorf("Server " + serv.Name + " at " + serv.Addr +
			" was not created on a supported VPS. It will need to be destroyed manually.")
	}
	return a.ServerRemove(args)
}

// The connect / disconnect stuff is very messy
// There doesn't seem to be an easy, cross-platform way to spawn a subprocess
// with admin privileges and kill it later.

func (a *App) ServerDisconnect(args simpleargs.Args) error {
	KillAll("openvpn")
	/*
		pidfile := path.Join(a.ConfigDir, "connectedpid")
		data, err := ioutil.ReadFile(pidfile)
		if err != nil {
			return err
		}
		pid := string(data)
		if runtime.GOOS == "windows" {
			return exec.Command("taskill", "/PID", pid).Run()
		} else {
			return exec.Command("kill", "-s", "INT", pid).Run()
		}
	*/
	return nil
}

func (a *App) ServerConnect(args simpleargs.Args) error {
	server, err := a.GetServer(args)
	if err != nil {
		return err
	}
	client := args.GetString("client")
	if client == "" {
		client = "client0"
	}
	cfg := path.Join(a.ConfigDir, "client_configs",
		fmt.Sprintf("%x", sha256.Sum256([]byte(server.Addr))), client+".ovpn")
	if _, err := os.Stat(cfg); os.IsNotExist(err) {
		err := a.ServerFetch(args)
		if err != nil {
			return err
		}
	}
	//ctx, cancel := context.WithCancel(context.Background())
	var cmdargs []string
	cmdmain := "sudo"
	if runtime.GOOS == "windows" {
		cmdmain = "runas"
		cmdargs = append(cmdargs, "runas", "/user:administrator")
	}
	cmdargs = append(cmdargs, "openvpn", "--config", cfg)
	cmdctx := exec.Command /*Context(ctx, */ (cmdmain, cmdargs...)
	//MakeSetpgid(cmdctx)
	cmdctx.Stdout = os.Stdout
	cmdctx.Stderr = os.Stderr
	err = cmdctx.Start()
	if err != nil {
		return err
	}
	/*
		err = nil
		pidfile := path.Join(a.ConfigDir, "connectedpid")
		err = ioutil.WriteFile(
			pidfile,
			[]byte(strconv.FormatUint(uint64(os.Getpid()), 10)),
			0600)
		defer os.Remove(pidfile)
		if err != nil {
			return err
		}
		go func() {
			c := make(chan os.Signal, 1)
			signal.Notify(c, os.Interrupt)
			<-c
			fmt.Println("SIGINT received")
			//cancel()
			os.Remove(pidfile)
			KillGroup(cmdctx)
			os.Exit(0)
		}()
	*/
	return cmdctx.Wait()
}


text:
layout: about
title: All About M.E.
image:
  feature: sky.jpg
  credit: Michael Espey
  creditlink: https://www.flickr.com/gp/125206168@N07/ku7amX
comments: false
modified: 2015-02-03
---

This is my first crack at blogging, I believe it is a great medium to keep all of my doings in one concise place!

##I had some help developing:

* I wanted to see how Googles new [Domains](domains.google.com) service worked, so I picked up a new one and ported over my old GitHub Pages site.
* Becuase I had this shiny new domain, I figured it was time to step into the modern world.
* I knew I wanted to use [Jekyll](http://jekyllrb.com/) for a solid, easy to manage/view base.
* I then moved to making a theme...
 * after I messed around with that for a week or so, I found HPSTR (linked below)
 * HPSTR had everything that I was struggeling to add to my theme
 * It is easy to manage, and everything is there.
 * The owner also has a few other [Jekyll Themes](http://mademistakes.com/work/jekyll-themes/)
* I got everything just how I wanted in under a week, all said and done.
* And best yet...it supports both legacy browsers and all modern browsers!!

Get HPSTR My Code


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Mali OpenCL SDK v1.1.0: Tutorials</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>

<link href="navtree.css" rel="stylesheet" type="text/css"/>

<link href="search/search.css" rel="stylesheet" type="text/css"/>

<link href="doxygen.css" rel="stylesheet" type="text/css" />

Mali OpenCL SDK v1.1.0

Home

Help and Tutorials

Files

          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)"
               onblur="searchBox.OnSearchFieldFocus(false)"
               onkeyup="searchBox.OnSearchFieldChange(event)"/>

 All Classes Files Functions Variables Macros Pages

Tutorials

Tutorials on how to get the best out of OpenCL on Mali GPUs.

Basic Tutorials

These tutorials introduce the basics of an OpenCL application.

Hello World

A basic introduction to OpenCL and Vectorization.

Template

A skeleton file that can be used as a starting point for OpenCL development.

Memory Buffers

How to share of memory efficiently between a Mali-T600 series GPU and a CPU.

Image Objects

An overview of OpenCL image objects including sample code.

64-bit Integers and Atomics

A tutorial to demonstrate the use of the long data type (64-bit integer) including atomics.

Advanced Tutorials

These tutorials show optimised implementations of more complex algorithms.

Sobel Filter

The Sobel image filter is a simple convolution filter used primarily for edge detection algorithms.

FIR Filter

Floating point FIR (Finite Input Response) image filter for pixelization and/or noise reduction.

Mandelbrot

The results of calculating the Mandelbrot set produces fractal patterns.

SGEMM

SGEMM (Single-Precision General Matrix Multiplication) OpenCL sample.

        (C) ARM Ltd. 2013


text:
package org.matrix.androidsdk.crypto.algorithms;

import androidx.annotation.Nullable;

import org.matrix.androidsdk.crypto.IncomingRoomKeyRequest;
import org.matrix.androidsdk.crypto.MXDecryptionException;
import org.matrix.androidsdk.crypto.MXEventDecryptionResult;
import org.matrix.androidsdk.crypto.interfaces.CryptoEvent;
import org.matrix.androidsdk.crypto.interfaces.CryptoSession;
import org.matrix.androidsdk.crypto.internal.MXCryptoImpl;

/**
 * An interface for decrypting data
 */
public interface IMXDecrypting {
    /**
     * Init the object fields
     *
     * @param matrixSession the session
     */
    void initWithMatrixSession(CryptoSession matrixSession, MXCryptoImpl crypto);

    /**
     * Decrypt an event
     *
     * @param event    the raw event.
     * @param timeline the id of the timeline where the event is decrypted. It is used to prevent replay attack.
     * @return the decryption information, or null in case of error
     * @throws MXDecryptionException the decryption failure reason
     */
    @Nullable
    MXEventDecryptionResult decryptEvent(CryptoEvent event, String timeline) throws MXDecryptionException;

    /**
     * Handle a key event.
     *
     * @param event the key event.
     */
    void onRoomKeyEvent(CryptoEvent event);

    /**
     * Check if the some messages can be decrypted with a new session
     *
     * @param senderKey the session sender key
     * @param sessionId the session id
     */
    void onNewSession(String senderKey, String sessionId);

    /**
     * Determine if we have the keys necessary to respond to a room key request
     *
     * @param request keyRequest
     * @return true if we have the keys and could (theoretically) share
     */
    boolean hasKeysForKeyRequest(IncomingRoomKeyRequest request);

    /**
     * Send the response to a room key request.
     *
     * @param request keyRequest
     */
    void shareKeysWithDevice(IncomingRoomKeyRequest request);
}


text:
@interface CustomNavigationBar()

@property (nonatomic, strong) UILabel *titleLabel;
@property (nonatomic, strong) UIButton *backButton;

@end

@implementation CustomNavigationBar

- (instancetype)initWithFrame:(CGRect)frame {

    if (self = [super initWithFrame:frame]) {

        self.backgroundColor = kLightGrayColor;

        [self createSubviews];
    }

    return self;
}

- (void)createSubviews {

    self.titleLabel = [UILabel new];
    CGFloat left_rightPadding = 50;
    CGFloat topPadding = 20;
    self.titleLabel.frame = CGRectMake(left_rightPadding, topPadding, self.width - 2 * left_rightPadding, kNavigationBarHeight - topPadding);
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    self.titleLabel.textColor = kBlackColor;
    self.titleLabel.font = kFont_18;
    [self addSubview:self.titleLabel];

    self.backButton = [UIButton buttonWithType:UIButtonTypeCustom];
    self.backButton.frame = CGRectMake(5, topPadding, 16, kNavigationBarHeight - topPadding);
    [self.backButton addTarget:self action:@selector(backButtonDidClicked) forControlEvents:UIControlEventTouchUpInside];
    [self.backButton setImage:[UIImage imageNamed:@"back_wenzi_up"] forState:UIControlStateNormal];
    [self.backButton setImage:[UIImage imageNamed:@"back_wenzi_down"] forState:UIControlStateHighlighted];
    self.backButton.imageView.contentMode = UIViewContentModeScaleAspectFit;
    self.backButton.hidden = YES;
    [self addSubview:self.backButton];

    UIView *lineView = [[UIView alloc] initWithFrame:CGRectMake(0, self.height - kSeparatorLineHeight, self.width, kSeparatorLineHeight)];
    lineView.backgroundColor = kCustomRGBColor(208, 208, 208, 1.0);
    [self addSubview:lineView];
}

- (void)backButtonDidClicked {

    if (self.delegate && [self.delegate respondsToSelector:@selector(navigationBarBackButtonDidClicked)]) {

        [self.delegate navigationBarBackButtonDidClicked];
    }
}

- (void)setTitle:(NSString *)title {

    _title = title;
    self.titleLabel.text = title;
}

- (void)setBackButtonHidden:(BOOL)backButtonHidden {

    _backButtonHidden = backButtonHidden;
    self.backButton.hidden = backButtonHidden;
}

@end


text:
using System.Web.Http.Dependencies;
using StructureMap;

namespace RSB.Diagnostics.HealthChecker.Web.DependencyResolution
{
    public class StructureMapDependencyResolver : StructureMapScope, IDependencyResolver
    {
        private readonly IContainer _container;

        public StructureMapDependencyResolver(IContainer container)
            : base(container)
        {
            _container = container;
        }

        public IDependencyScope BeginScope()
        {
            var childContainer = _container.GetNestedContainer();
            return new StructureMapScope(childContainer);
        }
    }
}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>BoundedUniform</title>
<meta name="date" content="2017-01-04">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Skip navigation links

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

org.drip.sequence.random

Class BoundedUniform

java.lang.Object

org.drip.sequence.random.UnivariateSequenceGenerator

org.drip.sequence.random.Bounded

org.drip.sequence.random.BoundedUniform

public class BoundedUniform
extends Bounded

BoundedUniform implements the Bounded Uniform Distribution, with a Uniform Distribution between a lower
  and an upper Bound.

Author:

Lakshmi Krishnamurthy

Constructor Summary

Constructors

Constructor and Description

BoundedUniform(double dblLowerBound,
              double dblUpperBound)

BoundedUniform Distribution Constructor

Method Summary

All Methods Instance Methods Concrete Methods

Modifier and Type
Method and Description

double
random()

Generate a Random Number according to the specified rule

Methods inherited from class org.drip.sequence.random.Bounded

lowerBound, sequence, upperBound

Methods inherited from class org.drip.sequence.random.UnivariateSequenceGenerator

sequence

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

BoundedUniform

public BoundedUniform(double dblLowerBound,
                      double dblUpperBound)
               throws java.lang.Exception

BoundedUniform Distribution Constructor

Parameters:

dblLowerBound - The Lower Bound

dblUpperBound - The Upper Bound

Throws:

java.lang.Exception - Thrown if the Inputs are invalid

Method Detail

random

public double random()

Description copied from class: UnivariateSequenceGenerator

Generate a Random Number according to the specified rule

Specified by:

random in class UnivariateSequenceGenerator

Returns:

The Random Number

Skip navigation links

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method


text:
using System;
using System.Globalization;
using Safewhere.SCIMModel.Connections;
using Newtonsoft.Json.Linq;
using Safewhere.Samples.RestApi.Domain;

namespace Safewhere.Samples.RestApi.Saml20ConnectionSample
{
    class Program
    {
        public const string PostSaml20ProtocolConnectionSample = "SampleData/PostSaml20ProtocolConnectionSample.json";
        public const string PutSaml20ProtocolConnectionSample = "SampleData/PutSaml20ProtocolConnectionSample.json";
        public const string PatchSaml20ProtocolConnectionSample = "SampleData/PatchSaml20ProtocolConnectionSample.json";

        public const string PostSaml20AuthenticationConnectionSample = "SampleData/PostSaml20AuthenticationConnectionSample.json";
        public const string PutSaml20AuthenticationConnectionSample = "SampleData/PutSaml20AuthenticationConnectionSample.json";
        public const string PatchSaml20AuthenticationConnectionSample = "SampleData/PatchSaml20AuthenticationConnectionSample.json";

        public const string SamlProtocolConnectionName = "Saml20 protocol connection";
        public const string SamlAuthenticationConnectionName = "Saml20 authentication connection";

        private static void Main()
        {
            Console.WriteLine( "Begin POST {0}", SamlProtocolConnectionName);
            PostConnection(SamlProtocolConnectionName, PostSaml20ProtocolConnectionSample);
            Console.WriteLine( "End POST {0}\n", SamlProtocolConnectionName);

            Console.WriteLine( "Begin PUT {0}", SamlProtocolConnectionName);
            PutConnection(SamlProtocolConnectionName, PostSaml20ProtocolConnectionSample, PutSaml20ProtocolConnectionSample);
            Console.WriteLine( "End PUT {0}\n", SamlProtocolConnectionName);

            Console.WriteLine( "Begin PUT {0}", SamlProtocolConnectionName);
            PatchConnection(SamlProtocolConnectionName, PostSaml20ProtocolConnectionSample, PatchSaml20ProtocolConnectionSample);
            Console.WriteLine( "End PUT {0}\n", SamlProtocolConnectionName);

            Console.WriteLine( "Begin GET {0}", SamlProtocolConnectionName);
            GetConnection(SamlProtocolConnectionName, PostSaml20ProtocolConnectionSample);
            Console.WriteLine( "End GET {0}\n", SamlProtocolConnectionName);

            Console.WriteLine( "Begin DELETE {0}", SamlProtocolConnectionName);
            DeleteConnection(SamlProtocolConnectionName, PostSaml20ProtocolConnectionSample);
            Console.WriteLine( "End DELETE {0}\n", SamlProtocolConnectionName);

            Console.WriteLine( "Begin POST {0}", SamlAuthenticationConnectionName);
            PostConnection(SamlAuthenticationConnectionName, PostSaml20AuthenticationConnectionSample);
            Console.WriteLine( "End POST {0}\n", SamlAuthenticationConnectionName);

            Console.WriteLine( "Begin PUT {0}", SamlAuthenticationConnectionName);
            PutConnection(SamlAuthenticationConnectionName, PostSaml20AuthenticationConnectionSample, PutSaml20AuthenticationConnectionSample);
            Console.WriteLine( "End PUT {0}\n", SamlAuthenticationConnectionName);

            Console.WriteLine( "Begin PUT {0}", SamlAuthenticationConnectionName);
            PatchConnection(SamlAuthenticationConnectionName, PostSaml20AuthenticationConnectionSample, PatchSaml20AuthenticationConnectionSample);
            Console.WriteLine( "End PUT {0}\n", SamlAuthenticationConnectionName);

            Console.WriteLine( "Begin GET {0}", SamlAuthenticationConnectionName);
            GetConnection(SamlAuthenticationConnectionName, PostSaml20AuthenticationConnectionSample);
            Console.WriteLine( "End GET {0}\n", SamlAuthenticationConnectionName);

            Console.WriteLine( "Begin DELETE {0}", SamlAuthenticationConnectionName);
            DeleteConnection(SamlAuthenticationConnectionName, PostSaml20AuthenticationConnectionSample);
            Console.WriteLine( "End DELETE {0}\n", SamlAuthenticationConnectionName);

            //Console.WriteLine("All done!");
        }

        private static void PostConnection(string connectionName, string postDataFilePath)
        {
            using (var request = new ApiWebRequest())
            {
                Console.WriteLine("-> Prepare data");
                var postData = Helper.GetJsonObjectFromFile<Connection>(postDataFilePath);

                RestApiCaller.CallAndHandleError
                    (
                        () =>
                        {
                            Console.WriteLine( "-> Post {0}", connectionName);
                            var response = request.Post(RequestObject.Connections, postData);
                            return response;
                        },
                        () =>
                        {
                            request.Delete(string.Format(CultureInfo.InvariantCulture, "{0}/{1}", RequestObject.Connections, postData.Name));
                        }
                    );
            }
        }

        private static void PutConnection(string connectionName, string postDataFilePath, string putDataFilePath)
        {
            using (var request = new ApiWebRequest())
            {
                Console.WriteLine("-> Prepare data");
                var postData = Helper.GetJsonObjectFromFile<Connection>(postDataFilePath);
                var putData = Helper.GetJsonObjectFromFile<JObject>(putDataFilePath);

                RestApiCaller.CallAndHandleError
                (
                    () =>
                    {
                        Console.WriteLine( "-> Post {0}", connectionName);
                        var response = request.Post(RequestObject.Connections, postData);

                        Console.WriteLine( "-> Put to update {0}", connectionName);
                        response = request.Put(RequestObject.Connections, putData);
                        return response;
                    },
                    () =>
                    {
                        request.Delete(string.Format(CultureInfo.InvariantCulture, "{0}/{1}", RequestObject.Connections, postData.Name));
                    }
                );
            }
        }

        private static void GetConnection(string connectionName, string postDataFilePath)
        {
            using (var request = new ApiWebRequest())
            {
                Console.WriteLine("-> Prepare data");
                var postData = Helper.GetJsonObjectFromFile<Connection>(postDataFilePath);

                RestApiCaller.CallAndHandleError
                (
                    () =>
                    {
                        Console.WriteLine( "-> Create new {0}", connectionName);
                        request.Post(RequestObject.Connections, postData);

                        Console.WriteLine( "-> Get {0}", connectionName);
                        var response = request.Get(string.Format(CultureInfo.InvariantCulture, "{0}/{1}", RequestObject.Connections, postData.Name));
                        return response;
                    },
                    () =>
                    {
                        request.Delete(string.Format(CultureInfo.InvariantCulture, "{0}/{1}", RequestObject.Connections, postData.Name));
                    }
                );
            }
        }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
        private static void PatchConnection(string connectionName, string postDataFilePath, string patchDataFilePath)
        {
            using (var request = new ApiWebRequest())
            {
                Console.WriteLine("-> Prepare data");
                var postData = Helper.GetJsonObjectFromFile<Connection>(postDataFilePath);
                var patchData = Helper.GetJsonObjectFromFile<JArray>(patchDataFilePath);

                RestApiCaller.CallAndHandleError
                (
                    () =>
                    {
                        Console.WriteLine( "-> Create new {0}", connectionName);
                        var response = request.Post(RequestObject.Connections, postData);

                        Console.WriteLine( "-> Put to update {0}", connectionName);
                        var path = string.Join("/", RequestObject.Connections, postData.Name);
                        response = request.Patch(path, patchData);

                        return response;
                    },
                    () =>
                    {
                        request.Delete(string.Format(CultureInfo.InvariantCulture, "{0}/{1}", RequestObject.Connections, postData.Name));
                    }
                );
            }
        }

        private static void DeleteConnection(string connectionName, string postDataFilePath)
        {
            using (var request = new ApiWebRequest())
            {
                Console.WriteLine("-> Prepare data");
                var postData = Helper.GetJsonObjectFromFile<Connection>(postDataFilePath);

                RestApiCaller.CallAndHandleError
                (
                    () =>
                    {
                        Console.WriteLine( "-> Create new {0}", connectionName);
                        request.Post(RequestObject.Connections, postData);

                        Console.WriteLine( "-> Delete {0}", connectionName);
                        var response =
                            request.Delete(string.Format(CultureInfo.InvariantCulture, "{0}/{1}", RequestObject.Connections,
                                postData.Name));
                        return response;
                    },
                    () =>
                    {
                        request.Delete(string.Format(CultureInfo.InvariantCulture, "{0}/{1}", RequestObject.Connections,
                                postData.Name));
                    }
                );

            }
        }
    }
}


text:
typedef enum {
    HZELLER_RPI_MATRIX,
    SERIAL_MATRIX,
    COMPUTER_SCREEN_MATRIX,
    NOOP_MATRIX
} MatrixType;

struct ControllerSettings {
    ControllerSettings(const std::string& configFilename);

    MatrixType m_matrixType;
    int m_fps;
    int m_width, m_height;
    float m_gamma;
    int m_palSize;
    std::string m_device;
    bool m_layoutLeftToRight;
    std::string m_startDrawerName;
    std::vector<std::string> m_drawers;
    int m_drawerChangeInterval;
    int m_screenShowMultiplier;
    int m_baseColorsPerPalette;
    int m_faceVideoDrawerTimeout;
    int m_faceDetectFps;
    std::string m_findBeatsCmd;
    CameraSettings m_cameraSettings;
};

class Controller {
public:
    Controller(Matrix* matrix, const ControllerSettings& settings,
        const std::vector<int>& baseColors, Camera* camera,
        FaceDetect* faceDetect, FindBeats* findBeats);

    ~Controller();

    void start(int interval);
    void stop();
    void loop(int interval);

private:
    const std::map<std::string,int>& settings() const;
    const std::map<std::string,std::pair<int,int> >& settingsRanges() const;
    void setSettings(const std::map<std::string,int>& settings);
    std::string currDrawerName() const;
    std::vector<std::string> drawerNames() const;
    void randomizeSettings(Drawer* drawer);
    void changeDrawer(const std::vector<std::string>& names);
    void init();

    Matrix* m_matrix;
    ControllerSettings m_settings;

    Palettes m_palettes;
    int m_currPalIndex; // index of current palette

    Camera* m_camera;
    FaceDetect* m_faceDetect;
    FindBeats* m_findBeats;

    std::map<std::string,Drawer*> m_drawers;
    Drawer* m_currDrawer;
    IntervalTimer m_drawerChangeTimer;

    int* m_colIndices; // stores current color indices before mapping to rgb
    int m_colIndicesSize; // size of color indices array

    FpsCounter m_fpsCounter;
    FrameTimer m_frameTimer;
    bool m_stop;
    std::thread m_thread;
    std::future<void> m_drawFuture;
};

#endif


text:
Use Audio Stegonography to embed All sorts of interesting information.  Currently working on link to spotify web player.

# How to use

First clone the repo

```
git clone https://github.com/mbstrange/stegoRawr.git
```

get to the directory and do a

```
npm install
```

then just do

```
node server.js
```

and you good to go


text:
class ProteinSequenceStanza < TogoStanza::Stanza::Base
  property :sequences do |tax_id, gene_id|
    sequences = query("http://togogenome.org/sparql", <<-SPARQL.strip_heredoc)
      PREFIX up: <http://purl.uniprot.org/core/>

      SELECT DISTINCT ?up_id ?aminoacid ?mass ?modified ?version ?checksum ?fragment ?precursor ?existence_label
      FROM <http://togogenome.org/graph/uniprot>
      FROM <http://togogenome.org/graph/tgup>
      WHERE {
        {
          SELECT ?gene
          {
            <http://togogenome.org/gene/#{tax_id}:#{gene_id}> skos:exactMatch ?gene .
          } ORDER BY ?gene LIMIT 1
        }
        <http://togogenome.org/gene/#{tax_id}:#{gene_id}> skos:exactMatch ?gene ;
          rdfs:seeAlso ?id_upid .
        ?id_upid rdfs:seeAlso ?protein .
        ?protein a up:Protein ;
                 up:sequence ?isoform .

        # (P42166 & P42167) x (P42166-1 & P42167-1) => P42166 - P42166-1, P42167 - P42167-1
        BIND( REPLACE( STR(?protein), "http://purl.uniprot.org/uniprot/", "") AS ?up_id)
        FILTER( REGEX(?isoform, ?up_id))

        ?isoform rdf:value ?aminoacid ;
                 up:mass ?mass ;
                 up:modified ?modified ;
                 up:version ?version ;
                 up:crc64Checksum ?checksum .

        # Sequence status
        OPTIONAL {
          ?isoform up:fragment ?fragment .
        }

        # Sequence processing
        OPTIONAL {
          ?isoform up:precursor ?precursor .
        }

        # Protein existence
        OPTIONAL {
          ?protein up:existence ?existence .
          ?existence rdfs:label ?existence_label .
        }
      }
    SPARQL

    sequences.map {|hash|
      hash.merge(
        sequence_length:     hash[:aminoacid].try(:length),
        sequence_status:     sequence_status(hash[:fragment].to_s),
        sequence_processing: is_true?(hash[:precursor]) ? 'precursor' : nil
      )
    }
  end

  private

  def sequence_status(fragment)
    case fragment
    when 'single', 'multiple'
      'Fragment'
    else
      'Complete'
    end
  end

  def is_true?(val)
    # XXX Owlimだと 'true' が、Virtuosoだと '1' が返ってくるよ...
    val == 'true' || val == '1'
  end
end


text:
define(['streamhub-sdk/collection'], function (Collection) {
    'use strict';

    var HotCollectionToCollection = function () {};

    /**
     * Transform an Object from StreamHub's Hot Collection endpoint into a
     * streamhub-sdk/collection model
     * @param hotCollection {object}
     */
    HotCollectionToCollection.transform = function (hotCollection) {
        var collection = new Collection({
            network: networkFromHotCollection(hotCollection),
            siteId: hotCollection.siteId,
            articleId: hotCollection.articleId,
            id: hotCollection.id,
            environment: environmentFromHotCollection(hotCollection)
        });
        collection.heatIndex = hotCollection.heat;
        collection.title = hotCollection.title;
        collection.url = hotCollection.url;
        return collection;
    };

    var NETWORK_IN_INITURL = /([^.\/]+\.fyre\.co|livefyre\.com)\/\d+\//;

    function networkFromHotCollection(hotCollection) {
        var initUrl = hotCollection.initUrl;
        var match = initUrl.match(NETWORK_IN_INITURL);
        if ( ! match) {
            return;
        }
        return match[1];
    }

    var ENVIRONMENT_IN_INITURL = /\/bs3\/([^\/]+)\/[^\/]+\/\d+\//;

    function environmentFromHotCollection(hotCollection) {
        var initUrl = hotCollection.initUrl;
        var match = initUrl.match(ENVIRONMENT_IN_INITURL);
        if ( ! match) {
            return;
        }
        return match[1];
    }

    return HotCollectionToCollection;
});


text:
module Quickbooks
  module Service
    class TaxRate < BaseService

      private

      def model
        Quickbooks::Model::TaxRate
      end
    end
  end
end


text:
#include "s2n_test.h"

#include "testlib/s2n_testlib.h"

#include <sys/wait.h>
#include <unistd.h>
#include <time.h>
#include <stdint.h>

#include "api/s2n.h"

#include "tls/s2n_connection.h"
#include "tls/s2n_handshake.h"

#define SUPPORTED_CERTIFICATE_FORMATS (2)

static const char *certificate_paths[SUPPORTED_CERTIFICATE_FORMATS] = { S2N_RSA_2048_PKCS1_CERT_CHAIN, S2N_RSA_2048_PKCS8_CERT_CHAIN };
static const char *private_key_paths[SUPPORTED_CERTIFICATE_FORMATS] = { S2N_RSA_2048_PKCS1_KEY, S2N_RSA_2048_PKCS8_KEY };

#define HISTOGRAM_SIZE 100
static uint32_t histogram_values[HISTOGRAM_SIZE] = { 0 };
static uint32_t histogram_counts[HISTOGRAM_SIZE] = { 0 };

static int custom_mem_init(void)
{
    return 0;
}

static int custom_mem_cleanup(void)
{

    return 0;
}

static int custom_mem_malloc(void **ptr, uint32_t requested, uint32_t *allocated)
{
    int i;
    for (i = 0; i < HISTOGRAM_SIZE; i++) {
        if (histogram_values[i] == 0) {
            histogram_values[i] = requested;
        }

        if (histogram_values[i] == requested) {
            break;
        }
    }

    if (i < HISTOGRAM_SIZE) {
        histogram_counts[i] += 1;
    }

    *ptr = malloc(requested);
    *allocated = requested;

    /* Fill the memory with non-zeroes to check that s2n handles that fine */
    memset(*ptr, 'a', requested);

    return 0;
}

static int custom_mem_free(void *ptr, uint32_t size)
{
    free(ptr);
    return 0;
}

void mock_client(struct s2n_test_io_pair *io_pair)
{
    char buffer[0xffff];
    struct s2n_connection *conn;
    struct s2n_config *config;
    s2n_blocked_status blocked;

    /* Give the server a chance to listen */
    sleep(1);

    conn = s2n_connection_new(S2N_CLIENT);
    config = s2n_config_new();
    s2n_config_disable_x509_verification(config);
    s2n_connection_set_config(conn, config);
    conn->server_protocol_version = S2N_TLS12;
    conn->client_protocol_version = S2N_TLS12;
    conn->actual_protocol_version = S2N_TLS12;

    s2n_connection_set_io_pair(conn, io_pair);

    s2n_negotiate(conn, &blocked);

    s2n_connection_free_handshake(conn);

    uint16_t timeout = 1;
    s2n_connection_set_dynamic_record_threshold(conn, 0x7fff, timeout);
    int i;
    for (i = 1; i < 0xffff - 100; i += 100) {
        for (int j = 0; j < i; j++) {
            buffer[j] = 33;
        }
        s2n_send(conn, buffer, i, &blocked);
    }

    for (int j = 0; j < i; j++) {
        buffer[j] = 33;
    }

    /* release the buffers here to validate we can continue IO after */
    s2n_connection_release_buffers(conn);

    /* Simulate timeout second conneciton inactivity and tolerate 50 ms error */
    struct timespec sleep_time = {.tv_sec = timeout, .tv_nsec = 50000000};
    int r;
    do {
        r = nanosleep(&sleep_time, &sleep_time);
    } while (r != 0);
    /* Active application bytes consumed is reset to 0 in before writing data. */
    /* Its value should equal to bytes written after writing */
    ssize_t bytes_written = s2n_send(conn, buffer, i, &blocked);
    if (bytes_written != conn->active_application_bytes_consumed) {
        exit(0);
    }

    int shutdown_rc = -1;
    while(shutdown_rc != 0) {
        shutdown_rc = s2n_shutdown(conn, &blocked);
    }

    s2n_connection_free(conn);
    s2n_config_free(config);

    /* Give the server a chance to a void a sigpipe */
    sleep(1);

    s2n_io_pair_close_one_end(io_pair, S2N_CLIENT);

    _exit(0);
}

int main(int argc, char **argv)
{
    struct s2n_connection *conn;
    struct s2n_config *config;
    s2n_blocked_status blocked;
    int status;
    pid_t pid;
    char *cert_chain_pem;
    char *private_key_pem;
    char *dhparams_pem;

    /* We have to set the callback before BEGIN_TEST, because s2n_init() is called
     * there.
     */
    int rc = s2n_mem_set_callbacks(custom_mem_init, custom_mem_cleanup, custom_mem_malloc, custom_mem_free);

    BEGIN_TEST();
    EXPECT_SUCCESS(s2n_disable_tls13());

    /* Can't add callbacks if s2n is initialized */
    EXPECT_FAILURE(s2n_mem_set_callbacks(custom_mem_init, custom_mem_cleanup, custom_mem_malloc, custom_mem_free));

    EXPECT_SUCCESS(rc);
    EXPECT_NOT_NULL(cert_chain_pem = malloc(S2N_MAX_TEST_PEM_SIZE));
    EXPECT_NOT_NULL(private_key_pem = malloc(S2N_MAX_TEST_PEM_SIZE));
    EXPECT_NOT_NULL(dhparams_pem = malloc(S2N_MAX_TEST_PEM_SIZE));

    for (int is_dh_key_exchange = 0; is_dh_key_exchange <= 1; is_dh_key_exchange++) {
        struct s2n_cert_chain_and_key *chain_and_keys[SUPPORTED_CERTIFICATE_FORMATS];

        /* Create a pipe */
        struct s2n_test_io_pair io_pair;
        EXPECT_SUCCESS(s2n_io_pair_init(&io_pair));

        /* Create a child process */
        pid = fork();
        if (pid == 0) {
            /* This is the client process, close the server end of the pipe */
            EXPECT_SUCCESS(s2n_io_pair_close_one_end(&io_pair, S2N_SERVER));

            /* Write the fragmented hello message */
            mock_client(&io_pair);
        }

        /* This is the server process, close the client end of the pipe */
        EXPECT_SUCCESS(s2n_io_pair_close_one_end(&io_pair, S2N_CLIENT));

        EXPECT_NOT_NULL(conn = s2n_connection_new(S2N_SERVER));
        conn->server_protocol_version = S2N_TLS12;
        conn->client_protocol_version = S2N_TLS12;
        conn->actual_protocol_version = S2N_TLS12;

        EXPECT_NOT_NULL(config = s2n_config_new());
        for (int cert = 0; cert < SUPPORTED_CERTIFICATE_FORMATS; cert++) {
            EXPECT_SUCCESS(s2n_read_test_pem(certificate_paths[cert], cert_chain_pem, S2N_MAX_TEST_PEM_SIZE));
            EXPECT_SUCCESS(s2n_read_test_pem(private_key_paths[cert], private_key_pem, S2N_MAX_TEST_PEM_SIZE));
            EXPECT_NOT_NULL(chain_and_keys[cert] = s2n_cert_chain_and_key_new());
            EXPECT_SUCCESS(s2n_cert_chain_and_key_load_pem(chain_and_keys[cert], cert_chain_pem, private_key_pem));
            EXPECT_SUCCESS(s2n_config_add_cert_chain_and_key_to_store(config, chain_and_keys[cert]));
        }

        if (is_dh_key_exchange) {
            EXPECT_SUCCESS(s2n_read_test_pem(S2N_DEFAULT_TEST_DHPARAMS, dhparams_pem, S2N_MAX_TEST_PEM_SIZE));
            EXPECT_SUCCESS(s2n_config_add_dhparams(config, dhparams_pem));
        }

        EXPECT_SUCCESS(s2n_connection_set_config(conn, config));

        /* Set up the connection to read from the fd */
        EXPECT_SUCCESS(s2n_connection_set_io_pair(conn, &io_pair));

        /* Negotiate the handshake. */
        EXPECT_SUCCESS(s2n_negotiate(conn, &blocked));

        char buffer[0xffff];
        for (int i = 1; i < 0xffff; i += 100) {
            char * ptr = buffer;
            int size = i;

            do {
                int bytes_read = 0;
                EXPECT_SUCCESS(bytes_read = s2n_recv(conn, ptr, size, &blocked));

                size -= bytes_read;
                ptr += bytes_read;
            } while(size);

            for (int j = 0; j < i; j++) {
                EXPECT_EQUAL(buffer[j], 33);
            }

            /* release the buffers here to validate we can continue IO after */
            EXPECT_SUCCESS(s2n_connection_release_buffers(conn));
        }

        int shutdown_rc = -1;
        do {
            shutdown_rc = s2n_shutdown(conn, &blocked);
            EXPECT_TRUE(shutdown_rc == 0 || (errno == EAGAIN && blocked));
        } while(shutdown_rc != 0);

        EXPECT_SUCCESS(s2n_connection_free(conn));
        for (int cert = 0; cert < SUPPORTED_CERTIFICATE_FORMATS; cert++) {
            EXPECT_SUCCESS(s2n_cert_chain_and_key_free(chain_and_keys[cert]));
        }
        EXPECT_SUCCESS(s2n_config_free(config));

        /* Clean up */
        EXPECT_EQUAL(waitpid(-1, &status, 0), pid);
        EXPECT_EQUAL(status, 0);
        EXPECT_SUCCESS(s2n_io_pair_close_one_end(&io_pair, S2N_SERVER));
    }

    free(cert_chain_pem);
    free(private_key_pem);
    free(dhparams_pem);

#if defined(S2N_TEST_DEBUG)
    /* Sort our histogram */
    uint32_t spare_value, spare_count;
    for (int i = 0; i < HISTOGRAM_SIZE; i++) {
        if (histogram_counts[i] == 0) {
            break;
        }

        for (int j = i + 1; j < HISTOGRAM_SIZE; j++) {
            if (histogram_counts[j] == 0) {
                break;
            }

            if (histogram_values[j] < histogram_values[i]) {
                spare_value = histogram_values[i];
                spare_count = histogram_counts[i];

                histogram_values[i] = histogram_values[j];
                histogram_counts[i] = histogram_counts[j];

                histogram_values[j] = spare_value;
                histogram_counts[j] = spare_count;
            }
        }
    }

    /* Print the histogram values */
    TEST_DEBUG_PRINT("\n\n");
    for (int i = 0; i < HISTOGRAM_SIZE; i++) {
        if (histogram_values[i] == 0) {
            break;
        }
        TEST_DEBUG_PRINT("Allocated %d bytes %d times\n", histogram_values[i], histogram_counts[i]);
    }
    TEST_DEBUG_PRINT("\n");
#endif

    END_TEST();

    return 0;
}


text:
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tab.Slack.Common.Model;

namespace Tab.Slack.Bot
{
    // TODO: make thread safe
    [Export(typeof(IBotState))]
    public class BotState : IBotState
    {
        public bool Connected { get; set; }
        public string LatestEventTs { get; set; }
        public string CacheVersion { get; set; }

        public SelfBotData Self { get; set; }

        public TeamData Team { get; set; }

        public List<BotModel> Bots { get; set; }
        public List<User> Users { get; set; }
        public List<Channel> Channels { get; set; }
        public List<Group> Groups { get; set; }
        public List<DirectMessageChannel> Ims { get; set; }
    }
}


text:
#import <UIKit/UIKit.h>
#import <CoreLocation/CLLocation.h>
#import "WFLocationManager.h"
#import "WFXMLService.h"

@class WFMapLibWrapper;
@class MapResultItem;
@class WFVectorMapView;
@class WFXMLService;
@class WFResultsModel;
@class WFVectorMapViewController;

@interface WFVectorMapView : UIView <CLLocationManagerDelegate, WFXMLServiceDelegate>
{
@private
    /* MapLib */
    WFMapLibWrapper *mapLibPtr;

    BOOL drawing;
    BOOL moving;

    CGLayerRef drawingLayer;
    CGLayerRef resultsLayer;
    CGLayerRef headerLayer;
    CGLayerRef gpsLayer;

    MapResultItem *headerAtItem;
    BOOL headerVisible;
    NSMutableArray *resultsArray;
    UIImage *resultIcon;
    //UIImageView *infoHeaderImage;
    UIImage *infoBubbleImage;
    CLLocationCoordinate2D currentCenter;
    double currentScale;
    CLLocationAccuracy locationAccuracy;
    CLLocationAccuracy prevLocationAccuracy;
    BOOL fetchNewResults;
    BOOL displayGPSIcon;
    BOOL shouldCenterUserLocation;
    BOOL shouldStopLocUpdate;
    WFLocationManager *myLocManager;
    CGPoint doubleTappedPoint;

    UIApplication *application;

    CLLocationCoordinate2D newUserLocation;
    CLLocationCoordinate2D oldUserLocation;
    BOOL doubleTapZooming;

    UIView *gpsView;
    UIImageView *gpsImageView;
    UIImageView *gpsIconView;
    CGImageRef myImage;
    CGFloat zoomScale;
    NSTimeInterval timeOfLastTouch;
    CGFloat lastTouchDistance;
    int touchCount;
    BOOL routeZooming;

    WFXMLService *xmlService;
    NSString *usedRouteId;

    id resultModel;
    WFVectorMapViewController *mapCtrl;

#ifdef PREMIUM_VERSION
    UIView *infoPanel;
    UILabel *speedLabel;
    UISegmentedControl *rerouteButton;
    BOOL isPanelOpen;
    NSTimer *showRouteTimer;
    UIImageView *routeIcon;
    UILabel *distanceLabel;
    NSDictionary *routeTarget;
    routingType usedRouteType;
    BOOL startedRouting;
    BOOL selfZoomed;
    float speedMultiplier;
    NSString *speedAbbr;
#endif
    CLLocationCoordinate2D routeTargetCoord;
}

@property (nonatomic) CLLocationCoordinate2D mapCenter;
@property (nonatomic) double mapScale;
@property (nonatomic,assign) WFMapLibWrapper *mapLibPtr;
@property (nonatomic) BOOL shouldStopLocUpdate;
@property (nonatomic) BOOL shouldCenterUserLocation;
@property (nonatomic,assign) id resultModel;
@property (nonatomic,assign) WFVectorMapViewController *mapCtrl;
#ifdef PREMIUM_VERSION
@property (nonatomic) BOOL startedRouting;
@property (nonatomic,assign) NSDictionary *routeTarget;
#endif

- (void)zoomToNearestResults;
- (void)viewResults:(NSArray *)results;
- (void)clearResultsOnMap;
- (void)showVisibleItemsOnMap;
- (void)showItemOnMap:(NSDictionary *)item;
- (void)showRouteTo:(NSDictionary *)item routeType:(routingType)routeType;
- (void)displayGPSIconOnMap;
- (void)drawUnCertainityCircleWithGradiant:(CGRect)circleBounds withContext:(CGContextRef)context;
- (void)showCurrentLocationOnMap;
- (void)showMoreResults;

- (void)animateGPSLocationTo:(CGPoint)newPt withBounds:(CGRect)bounds;
@end


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FrameworkLibrary
{
    public partial class MediaTypeRole : IMustContainID
    {
    }
}


text:
[![Build Status](https://travis-ci.org/Trybnetic/minimalist.svg?branch=master)](https://travis-ci.org/Trybnetic/minimalist)
[![License](https://img.shields.io/github/license/Trybnetic/minimalist.svg)](https://github.com/Trybnetic/minimalist/blob/master/LICENSE.txt)

Minimalist is a simple and light weighted [jekyll](http://jekyllrb.com/) theme. It focuses on a minimalistic design but still providing all functionality for a personal blog.

## Installation
To install Open Recipes you have to install [jekyll](https://jekyllrb.com). After successfully installing jekyll you have to clone this repository to your computer:
```
git clone https://github.com/Trybnetic/minimalist.git
```
Then switch into the directory and start jekyll:
```
cd minimalist
bundle exec jekyll serve
```
The last command starts a webserver on your local machine. Now you should have a copy of the site running at `http://127.0.0.1:4000/`. Open this url with your webbrowser and explore the site.
By changing some of the files (except of the `config.yml`) the changes will be displayed immediately.

## Usage
After you successfully installed the theme on your computer you can add additional blog posts by creating new files in the `_posts` directory. The new files have to follow the name convention `year-month-day-title.md`.

## Post structure
**Example:**
```
---
layout: post
title:  "Lorem ipsum"
date:   2017-09-06 01:03:29 +0200
categories: lorem ipsum
---

Eius ut fugiat omnis. Autem nihil dignissimos deserunt eum. In adipisci ipsum
natus saepe facere. Aspernatur velit autem sed. Rerum provident non incidunt id
expedita aliquam non. Eum sit saepe autem nam aut voluptatem non et.

<!--more-->

Sequi et ut consequatur et incidunt expedita provident. Iste ipsa eaque qui.
Totam vitae quasi nulla aut aliquam harum. Quibusdam et deserunt possimus
dolores voluptate facilis corrupti vero.

```

Each post consits of a header and a body. In the header defined by the `---`, you have to make basic definitions concerning the blog post.
In the first line of the example the layout is specified. This should be `layout: post` for all blog post except you want to add a custom layout for a certain media type. In the second line the title of the blog post is specified. In the third line you have to add the date of publication which will be displayed on top of the blog post on the website. In the fourth and last line of the header you can add categories so your blog posts gets displayed at the categories site `/categories/<category>/`. The existing categories can be found in the `categories/` folder.
Finally, you can add `<!--more-->` in your text to indicate that the text till this delimiter should be used as a preview at the homepage.

## Categories
This theme supports using categories. If you want to add custom categories you need to add a `<your category name>.md` file to the `categories/` folder, where `<your category name>` denotes the name of the category you want to add.
Your `<your category name>.md` needs to contain the following lines:
```
---
layout: category
category: <your category name>
permalink: /categories/<your category name>/
---
```
The first line specifies that the layout of the rendered site is category. In the second line you have to specify the name of the category you want to add. And finally, you have to specify the link scheme to your category site.

## Host your own blog
The simplest way to host your own blog with the [Minimalist](https://trybnetic.github.io/minimalist/) theme is to fork [the repository](https://github.com/Trybnetic/minimalist/) and use the [gh-pages](https://pages.github.com/) functionality provided by [GitHub](https://github.com/).

## License
This jekyll theme is [licensed under the MIT license](https://github.com/Trybnetic/minimalist/blob/master/LICENSE.txt). Check the license on whether and how you are allowed to use, modify and distribute this theme.


text:
import getStamp from 'util/dateStamp';

const checkLocalDay = () => {
  if (!localStorage["day"]) { return null; }

  const day = JSON.parse(localStorage["day"]);
  return (day.dateStamp !== getStamp().date) ? null : day;
};

export default (state = checkLocalDay(), action) => {
  switch (action.type) {
    case "SET_DAY":
      return action.day;
    case "CLEAR_DAY":
      return null;
  }
  return state;
};


text:
package net.sf.flatpack.examples.delimiteddynamiccolumns;

/*
 * Created on Dec 31, 2004
 *
 */

import java.io.File;
import java.util.Iterator;

import net.sf.flatpack.DataError;
import net.sf.flatpack.DataSet;
import net.sf.flatpack.DefaultParserFactory;
import net.sf.flatpack.Parser;
import net.sf.flatpack.ordering.OrderBy;
import net.sf.flatpack.ordering.OrderColumn;

/**
 * @author zepernick
 *
 * TODO To change the template for this generated type comment go to Window -
 * Preferences - Java - Code Style - Code Templates
 */
public class DelimitedWithPZMap {
    public static void main(final String[] args) throws Exception {

        final String mapping = getDefaultMapping();
        final String data = getDefaultDataFile();
        call(mapping, data);

    }

    public static String getDefaultDataFile() {
        return "PEOPLE-CommaDelimitedWithQualifierAndHeaderTrailerRecError.txt";
    }

    public static String getDefaultMapping() {
        return "PEOPLE-DelimitedWithHeaderTrailer.pzmap.xml";
    }

    public static void call(final String mapping, final String data) throws Exception {
        // delimited by a comma
        // text qualified by double quotes
        // ignore first record
        OrderBy orderby = null;
        final Parser pzparser = DefaultParserFactory.getInstance().newDelimitedParser(new File(mapping), new File(data), ',', '"', true);
        final DataSet ds = pzparser.parse();

        // re order the data set by last name
        orderby = new OrderBy();
        orderby.addOrderColumn(new OrderColumn("CITY", false));
        orderby.addOrderColumn(new OrderColumn("LASTNAME", true));
        // ds.orderRows(orderby);

        final String[] colNames = ds.getColumns();

        while (ds.next()) {

            if (ds.isRecordID("header")) {
                System.out.println(">>>>found header");
                System.out.println("COLUMN NAME: INDICATOR VALUE: " + ds.getString("RECORDINDICATOR"));
                System.out.println("COLUMN NAME: HEADERDATA VALUE: " + ds.getString("HEADERDATA"));
                System.out.println("===========================================================================");
                continue;
            }

            if (ds.isRecordID("trailer")) {
                System.out.println(">>>>found trailer");
                System.out.println("COLUMN NAME: INDICATOR VALUE: " + ds.getString("RECORDINDICATOR"));
                System.out.println("COLUMN NAME: TRAILERDATA VALUE: " + ds.getString("TRAILERDATA"));
                System.out.println("===========================================================================");
                continue;
            }

            for (int i = 0; i < colNames.length; i++) {
                System.out.println("COLUMN NAME: " + colNames[i] + " VALUE: " + ds.getString(colNames[i]));
            }

            System.out.println("===========================================================================");
        }

        if (ds.getErrors() != null && ds.getErrors().size() > 0) {
            System.out.println("<<<<FOUND ERRORS IN FILE>>>>");
            final Iterator pzerrors = ds.getErrors().iterator();
            while (pzerrors.hasNext()) {
                final DataError error = (DataError) pzerrors.next();
                System.out.println("Error Msg: " + error.getErrorDesc() + " line no: " + error.getLineNo());
            }

        }

    }
}


text:
/* Base */
a,
.btn-link {
	color: #d64b4b;
}

a:hover,
a:focus,
.btn-link:hover,
.btn-link:focus {
	color: #db6060;
}

a:active,
.btn-link:active {
	color: #d13636;
}
/* Blockquote */
blockquote.primary {
	border-color: #d64b4b;
}
/* Nav Pills */
.nav-pills-primary > li a:hover,
.nav-pills-primary > li a:focus {
	color: #d64b4b;
	background-color: #ffffff;
}

.nav-pills-primary > li.active > a,
.nav-pills-primary > li.active > a:hover,
.nav-pills-primary > li.active > a:active,
.nav-pills-primary > li.active > a:focus {
	background-color: #d64b4b;
}
/* Checkboxes */
.checkbox-primary label:before {
	background: #d64b4b;
	border-color: #d13636;
}

.checkbox-text-primary input[type="checkbox"]:checked + label:after {
	color: #d64b4b;
}
/* Radios */
.radio-primary input[type="radio"]:checked + label:after {
	background: #d64b4b;
	-webkit-box-shadow: 0px 0px 1px #d64b4b;
	box-shadow: 0px 0px 1px #d64b4b;
}
/* Dropdown Menu */
.dropdown-menu  > .active  > a,
.dropdown-menu  > .active  > a:hover,
.dropdown-menu  > .active  > a:focus {
	background-color: #d64b4b;
}

.open > .dropdown-toggle.btn-primary {
	background: #d64b4b;
	border-color: #d13636;
}

body .btn-primary.dropdown-toggle {
	border-left-color: #de6c6c;
}
/* Buttons */
body .btn-primary {
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #d64b4b;
	border-color: #d64b4b;
}

body .btn-primary:hover {
	border-color: #db6060 !important;
	background-color: #db6060;
}

body .btn-primary:active,
body .btn-primary:focus {
	border-color: #d13636 !important;
	background-color: #d13636;
}

body .btn-primary[disabled] {
	border-color: #e99e9e !important;
	background-color: #e99e9e;
}

body .btn-success {
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #47a447;
	border-color: #47a447;
}

body .btn-success:hover {
	border-color: #51b451 !important;
	background-color: #51b451;
}

body .btn-success:active,
body .btn-success:focus {
	border-color: #3f923f !important;
	background-color: #3f923f;
}

body .btn-success[disabled] {
	border-color: #86cb86 !important;
	background-color: #86cb86;
}

body .btn-warning {
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #ed9c28;
	border-color: #ed9c28;
}

body .btn-warning:hover {
	border-color: #efa740 !important;
	background-color: #efa740;
}

body .btn-warning:active,
body .btn-warning:focus {
	border-color: #e89113 !important;
	background-color: #e89113;
}

body .btn-warning[disabled] {
	border-color: #f5c786 !important;
	background-color: #f5c786;
}

body .btn-danger {
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #d2322d;
	border-color: #d2322d;
}

body .btn-danger:hover {
	border-color: #d64742 !important;
	background-color: #d64742;
}

body .btn-danger:active,
body .btn-danger:focus {
	border-color: #bd2d29 !important;
	background-color: #bd2d29;
}

body .btn-danger[disabled] {
	border-color: #e48481 !important;
	background-color: #e48481;
}

body .btn-info {
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #5bc0de;
	border-color: #5bc0de;
}

body .btn-info:hover {
	border-color: #70c8e2 !important;
	background-color: #70c8e2;
}

body .btn-info:active,
body .btn-info:focus {
	border-color: #46b8da !important;
	background-color: #46b8da;
}

body .btn-info[disabled] {
	border-color: #b0e1ef !important;
	background-color: #b0e1ef;
}

body .btn-dark {
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #171717;
	border-color: #171717;
}

body .btn-dark:hover {
	border-color: #242424 !important;
	background-color: #242424;
}

body .btn-dark:active,
body .btn-dark:focus {
	border-color: #0a0a0a !important;
	background-color: #0a0a0a;
}

body .btn-dark[disabled] {
	border-color: #4a4a4a !important;
	background-color: #4a4a4a;
}
/* Switch*/
.switch.switch-primary .ios-switch .on-background {
	background: #d64b4b;
}
/* Label */
.label-primary {
	background: #d64b4b;
}
/* Text Primary */
.text-primary {
	color: #d64b4b !important;
}
/* BG Primary */
.bg-primary {
	background: #d64b4b;
}
/* Alternative Font Style */
.alternative-font {
	color: #d64b4b;
}
/* Hightlight */
.highlight {
	background-color: #d64b4b;
}
/* Drop Caps */
p.drop-caps.colored:first-child:first-letter {
	color: #d64b4b;
}

p.drop-caps.colored.secundary:first-child:first-letter {
	background-color: #d64b4b;
}
/* Well */
.well.primary {
	background: #d64b4b;
}
/* Form */
.form-control:focus {
	border-color: #e99e9e;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(214, 75, 75, 0.3);
}
/* Header */
.header .toggle-sidebar-left {
	background: #d64b4b;
}
/* Page Header */
.page-header h2 {
	border-bottom-color: #d64b4b;
}

.page-header .sidebar-right-toggle:hover {
	color: #d64b4b;
}
/* Navigation */
ul.nav-main > li.nav-active > a {
	box-shadow: 2px 0 0 #d64b4b inset;
}

ul.nav-main > li.nav-active > i {
	color: #d64b4b;
}

ul.nav-main li .nav-children li.nav-active > a {
	color: #d64b4b;
}
/* Nano Scroller Plugin */
html.no-overflowscrolling .nano > .nano-pane > .nano-slider {
	background: #d64b4b;
}
/* Sidebar Left */
.sidebar-left .sidebar-header .sidebar-toggle:hover i {
	color: #d64b4b;
}

@media only screen and (min-width: 768px) {
	html.sidebar-left-collapsed.scroll .sidebar-left .nav-main li.nav-active a:hover,
  html.sidebar-left-collapsed.boxed .sidebar-left .nav-main li.nav-active a:hover {
		color: #d64b4b;
	}

	html.sidebar-left-collapsed.scroll .sidebar-left .nav-main > li:hover > a span.label,
  html.sidebar-left-collapsed.boxed .sidebar-left .nav-main > li:hover > a span.label {
		background-color: #d64b4b;
	};
}
/* Layout Boxed - small than min-width */
@media only screen and (max-width: 1199px) {
	html.boxed .header {
		border-top-color: #d64b4b;
	};
}
/* Layout Boxed - larger or equal min width */
@media only screen and (min-width: 1200px) {
	html.boxed .header {
		border-top-color: #d64b4b;
	}

	html.boxed .sidebar-right {
		border-top-color: #d64b4b;
		min-height: 0;
	};
}
/* Userbox - Open */
.userbox.open .dropdown-menu a:hover {
	background: #d64b4b;
}
/* DatePicker */
.datepicker table {
	width: 100%;
}

.datepicker table thead tr th.prev:hover,
.datepicker table thead tr th.next:hover {
	background: #d64b4b;
}

.datepicker table thead tr:first-child th:hover {
	background: #d64b4b;
}

.datepicker table tr td span:hover {
	background: #d64b4b;
}

.datepicker table tr td.day:hover {
	background: #d64b4b;
}

.datepicker table tfoot tr th:hover {
	background: #d64b4b;
}
/* DatePicker: Primary */
.datepicker.datepicker-dark table thead tr th.prev:hover,
.datepicker.datepicker-dark table thead tr th.next:hover {
	background: #d64b4b;
}

.datepicker.datepicker-dark table tbody tr td.day:hover {
	background: #d64b4b;
}

.datepicker.datepicker-dark table tbody tr td.day.active {
	background: #d64b4b;
}
/* DatePicker: Dark */
.datepicker.datepicker-primary table thead tr:first-child {
	background-color: #d64b4b;
}

.datepicker.datepicker-primary table thead tr:first-child th:hover {
	background-color: #c22c2c;
}

.datepicker.datepicker-primary table thead tr:last-child {
	background-color: #db6060;
}

.datepicker.datepicker-primary table thead tr:last-child th:hover {
	background-color: #d64b4b;
}

.datepicker.datepicker-primary table tbody tr td.day:hover {
	background: #d64b4b;
}

.datepicker.datepicker-primary table tbody tr td.day.active {
	background: #d64b4b;
}
/* Nav Pills */
.nav-pills > .active a,
.nav-pills > .active a:hover,
.nav-pills > .active a:focus {
	background-color: #d64b4b;
}
/* Pagination */
.pagination > li a {
	color: #d64b4b;
}

.pagination > li a:hover,
.pagination > li a:focus {
	color: #db6060;
}

.pagination > li.active a,
.pagination > li.active span,
.pagination > li.active a:hover,
.pagination > li.active span:hover,
.pagination > li.active a:focus,
.pagination > li.active span:focus {
	background-color: #d64b4b;
	border-color: #d64b4b;
}

.pagination > li.active a {
	background-color: #d64b4b;
}
/* Select 2 */
.select2-container-multi .select2-choices .select2-search-choice {
	background: #d64b4b;
}
/* Fullcalendar */
.fc .fc-widget-header {
	background: #d64b4b;
	border-color: #d64b4b;
}

.fc .fc-header-title h2:before {
	color: #d64b4b;
}

.fc-event {
	background: #d64b4b;
	border-color: #d64b4b;
}

.fc-event.fc-event-primary {
	background: #d64b4b;
	border-color: #d64b4b;
}
/* Wizard */
.wizard-steps > li.active .badge {
	background-color: #d64b4b;
}

.wizard-steps > li.active a,
.wizard-steps > li.active a:hover,
.wizard-steps > li.active a:focus {
	border-top-color: #d64b4b;
}

.wizard-tabs ul > li.active .badge {
	background-color: #d64b4b;
}

.wizard-progress .steps-progress .progress-indicator {
	background: #d64b4b;
}

.wizard-progress .wizard-steps li.completed a span {
	border-color: #d64b4b;
	background: #d64b4b;
}

.wizard-progress .wizard-steps li.active a span {
	color: #d64b4b;
	border-color: #d64b4b;
}
/* Mailbox */
.mailbox .mailbox-mail-list li.active {
	background: #d64b4b;
}

.mailbox .mailbox-mail .mailbox-close-mail {
	color: #d64b4b;
}

.mailbox .mailbox-mail .mailbox-close-mail:hover {
	color: #db6060;
}

.mailbox .mailbox-mail .panel .panel-heading .panel-actions a:hover {
	color: #d64b4b;
}
/* Maps */
.jqvmap-zoomin,
.jqvmap-zoomout {
	background: #d64b4b;
}
/* Media Gallery */
.media-gallery ul.mg-tags > li a:hover {
	background-color: #d64b4b;
}

.media-gallery .mg-files .thumbnail .thumb-preview .mg-thumb-options .mg-zoom {
	background-color: #d64b4b;
}

.media-gallery .mg-files .thumbnail .thumb-preview .mg-thumb-options .mg-toolbar {
	background-color: #d64b4b;
}

.media-gallery .mg-files .thumbnail.thumbnail-selected {
	box-shadow: 0 0 8px -1px #d64b4b;
}
/* Sign Screens - Wrappers */
.body-sign .panel-sign .panel-title-sign .title {
	background-color: #d64b4b;
}

.body-sign .panel-sign .panel-body {
	border-top-color: #d64b4b;
}
/* Lock Screen */
.body-locked .current-user .user-image {
	border-color: #d64b4b;
}
/* Timeline */
.timeline .tm-items > li .tm-datetime .tm-datetime-time {
	color: #d64b4b;
}

.timeline .tm-items > li .tm-icon {
	border-color: #d64b4b;
	color: #d64b4b;
}

.timeline.timeline-simple .tm-body .tm-items > li:before {
	background: #d64b4b;
	box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px #d64b4b;
}
/* Tables */
.table > thead > tr > td.primary,
.table > tbody > tr > td.primary,
.table > tfoot > tr > td.primary,
.table > thead > tr > th.primary,
.table > tbody > tr > th.primary,
.table > tfoot > tr > th.primary,
.table > thead > tr.primary > td,
.table > tbody > tr.primary > td,
.table > tfoot > tr.primary > td,
.table > thead > tr.primary > th,
.table > tbody > tr.primary > th,
.table > tfoot > tr.primary > th {
	background-color: #d64b4b;
}
/* Princing Table */
.pricing-table h3 span {
	color: #d64b4b;
}

.pricing-table .most-popular h3 {
	background-color: #d64b4b;
}
/* Data Tables Loading */
.dataTables_processing {
	background-color: #d64b4b;
}
/* Accordion */
.panel-group .panel-accordion .panel-heading a {
	color: #d64b4b;
}
/* Alerts */
.alert-primary {
	background-color: #d64b4b;
	border-color: #d33f3f;
}

.alert-primary .alert-link {
	color: #982323;
}
/* Liquid Meter */
.liquid-meter-wrapper .liquid-meter-selector a.active {
	color: #d64b4b;
}
/* Nestable */
.dd-handle:hover {
	color: #d64b4b;
}

.dd-placeholder {
	background: #ffffff;
	border-color: #d64b4b;
}
/* Panels */
.panel-highlight .panel-heading {
	background-color: #d64b4b;
	border-color: #d64b4b;
}

.panel-highlight .panel-body {
	background-color: #d64b4b;
}

.panel-primary .panel-heading {
	background: #d64b4b;
	border-color: #d64b4b;
}

.panel-heading.bg-primary {
	background: #d64b4b;
}

.panel-body.bg-primary {
	background: #d64b4b;
}

.panel-featured-primary {
	border-color: #d64b4b;
}

.panel-featured-primary .panel-title {
	color: #d64b4b;
}

.panel-heading-icon.bg-primary {
	background: #d64b4b;
}

.panel-group .panel-accordion-primary .panel-heading .panel-title a {
	background: #d64b4b;
}
/* Progress Bar */
.progress-bar {
	background-color: #d64b4b;
}

.progress .progress-bar-primary {
	background-color: #d64b4b;
}
/* Toggle */
.toggle label {
	border-left-color: #d64b4b;
	color: #d64b4b;
}

.toggle.active > label {
	background: #d64b4b;
	border-color: #d64b4b;
}
/* Treeview */
.jstree-default .jstree-hovered {
	background-color: #ffffff;
}

.jstree-default .jstree-clicked {
	background-color: #ffffff;
}

.jstree-default .colored {
	color: #d64b4b;
}

.jstree-default .colored .jstree-icon {
	color: #d64b4b;
}

.jstree-default .colored-icon .jstree-icon {
	color: #d64b4b;
}
/* Widgets */
.sidebar-widget.widget-tasks ul li:before {
	border-color: #d64b4b;
}

.widget-twitter-profile {
	background-color: #d64b4b;
}

.widget-twitter-profile .profile-quote {
	background-color: #da5c5c;
}

.widget-twitter-profile .profile-quote .quote-footer {
	border-top-color: rgba(223, 117, 117, 0.7);
}

.widget-profile-info .profile-info .profile-footer {
	border-top-color: rgba(223, 117, 117, 0.7);
}
/* Thumb Info */
.thumb-info .thumb-info-type {
	background-color: #d64b4b;
}
/* Social Icons */
.social-icons a {
	background: #d64b4b;
}
/* Notifications */
.notifications .notification-menu .notification-title {
	background: #d64b4b;
}

.notifications .notification-menu .notification-title .label-default {
	background-color: #c22c2c;
}

.notifications .notification-menu:before,
.notifications .notification-icon:before {
	border-bottom-color: #d64b4b;
}

.ui-pnotify .notification-primary {
	background: rgba(214, 75, 75, 0.95);
}

.ui-pnotify.stack-bar-top .notification-primary,
.ui-pnotify.stack-bar-bottom .notification-primary {
	background: #d64b4b;
}

.ui-pnotify.notification-primary .notification,
.ui-pnotify.notification-primary .notification-primary {
	background: rgba(214, 75, 75, 0.95);
}

.ui-pnotify.notification-primary.stack-bar-top .notification,
.ui-pnotify.notification-primary.stack-bar-bottom .notification,
.ui-pnotify.notification-primary.stack-bar-top .notification-primary,
.ui-pnotify.notification-primary.stack-bar-bottom .notification-primary {
	background: #d64b4b;
}
/* Modal */
.modal-block-primary .fa {
	color: #d64b4b;
}

.modal-block-primary.modal-header-color .panel-heading {
	background-color: #d64b4b;
}

.modal-block-primary.modal-full-color .panel {
	background-color: #de6c6c;
}

.modal-block-primary.modal-full-color .panel-heading {
	background-color: #d64b4b;
}

.modal-block-primary.modal-full-color .panel-footer {
	background-color: #de6c6c;
}
/* Modal Icon */
.modal-block-primary .modal-icon .fa {
	color: #d64b4b;
}
/* Slider */
.slider-primary .ui-slider-range,
.slider-primary .ui-slider-handle {
	background: #d64b4b;
}

.slider-gradient.slider-primary .ui-slider-range,
.slider-gradient.slider-primary .ui-slider-handle {
	background-image: -webkit-linear-gradient(left, #df7575 0, #d64b4b 50%, #c22c2c 100%);
	background-image: linear-gradient(left, #df7575 0, #d64b4b 50%, #c22c2c 100%);
}

.slider-gradient.ui-slider-vertical.slider-primary .ui-slider-range,
.slider-gradient.ui-slider-vertical.slider-primary .ui-slider-handle {
	background-image: -webkit-linear-gradient(to right, #df7575 0, #d64b4b 50%, #c22c2c 100%);
	background-image: linear-gradient(to right, #df7575 0, #d64b4b 50%, #c22c2c 100%);
}
/* Tabs */
.tabs-primary .nav-tabs li a,
.tabs-primary .nav-tabs.nav-justified li a,
.tabs-primary .nav-tabs li a:hover,
.tabs-primary .nav-tabs.nav-justified li a:hover {
	color: #d64b4b;
}

.tabs-primary .nav-tabs li a:hover,
.tabs-primary .nav-tabs.nav-justified li a:hover {
	border-top-color: #d64b4b;
}

.tabs-primary .nav-tabs li.active a,
.tabs-primary .nav-tabs.nav-justified li.active a,
.tabs-primary .nav-tabs li.active a:hover,
.tabs-primary .nav-tabs.nav-justified li.active a:hover,
.tabs-primary .nav-tabs li.active a:focus,
.tabs-primary .nav-tabs.nav-justified li.active a:focus {
	border-top-color: #d64b4b;
	color: #d64b4b;
}

.tabs-primary.tabs-bottom .nav-tabs li a:hover,
.tabs-primary.tabs-bottom .nav-tabs.nav-justified li a:hover {
	border-bottom-color: #d64b4b;
}

.tabs-primary.tabs-bottom .nav-tabs li.active a,
.tabs-primary.tabs-bottom .nav-tabs.nav-justified li.active a,
.tabs-primary.tabs-bottom .nav-tabs li.active a:hover,
.tabs-primary.tabs-bottom .nav-tabs.nav-justified li.active a:hover,
.tabs-primary.tabs-bottom .nav-tabs li.active a:focus,
.tabs-primary.tabs-bottom .nav-tabs.nav-justified li.active a:focus {
	border-top-color: #FFF;
	border-bottom-color: #d64b4b;
}

.tabs-primary.tabs-vertical.tabs-left li a:hover {
	border-left-color: #d64b4b;
}

.tabs-primary.tabs-vertical.tabs-left li.active a,
.tabs-primary.tabs-vertical.tabs-left li.active a:hover,
.tabs-primary.tabs-vertical.tabs-left li.active a:focus {
	border-left-color: #d64b4b;
}

.tabs-primary.tabs-vertical.tabs-right li a:hover {
	border-right-color: #d64b4b;
}

.tabs-primary.tabs-vertical.tabs-right li.active a,
.tabs-primary.tabs-vertical.tabs-right li.active a:hover,
.tabs-primary.tabs-vertical.tabs-right li.active a:focus {
	border-right-color: #d64b4b;
}
/* Simple List */
ul.simple-bullet-list li:before {
	border-color: #d64b4b;
}
/* Simple Card List */
.simple-card-list li.primary {
	background: #d64b4b;
}


text:
#import "IDEViewController.h"

#import "NSPopoverDelegate-Protocol.h"

@class NSLayoutConstraint, NSPopover, NSProgressIndicator, NSString, NSTextView;

@interface DBGPrintDescriptionPopoverViewController : IDEViewController <NSPopoverDelegate>
{
    NSString *_description;
    BOOL _popoverIsAnimatingIn;
    BOOL _updateDescriptionWasDeferred;
    NSPopover *_popover;
    NSTextView *_textView;
    NSProgressIndicator *_loadingIndicator;
    NSLayoutConstraint *_scrollViewWidthConstraint;
    NSLayoutConstraint *_scrollViewHeightConstraint;
}

@property(retain) NSLayoutConstraint *scrollViewHeightConstraint; // @synthesize scrollViewHeightConstraint=_scrollViewHeightConstraint;
@property(retain) NSLayoutConstraint *scrollViewWidthConstraint; // @synthesize scrollViewWidthConstraint=_scrollViewWidthConstraint;
@property(retain) NSProgressIndicator *loadingIndicator; // @synthesize loadingIndicator=_loadingIndicator;
@property(retain) NSTextView *textView; // @synthesize textView=_textView;
@property(retain) NSPopover *popover; // @synthesize popover=_popover;
- (void).cxx_destruct;
- (void)primitiveInvalidate;
- (void)popoverDidClose:(id)arg1;
- (void)popoverDidShow:(id)arg1;
- (void)popoverWillShow:(id)arg1;
- (void)_updateDescription;
- (void)loadView;
- (id)initWithDataValue:(id)arg1;

@end


text:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:circle="http://schemas.android.com/apk/res-auto"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center_horizontal"
    android:background="@color/white">
    <!-- 액션바 -->
    <RelativeLayout
        android:id="@+id/action_bar"
        android:layout_width="match_parent"
        android:layout_height="@dimen/actionbar_height_1"
        android:background="@color/white">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:text="내 상품 홍보"
            android:textSize="@dimen/dp16"
            android:textStyle="bold"
            android:textColor="@color/text_color_4" />

        <TextView
            android:id="@+id/btn_confirm"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_alignParentRight="true"
            android:layout_marginRight="@dimen/dp14.5"
            android:text="@string/txt_confirm"
            android:textSize="@dimen/dp16"
            android:textColor="@color/text_color_8" />
        <View
            android:layout_width="match_parent"
            android:layout_height="@dimen/dp1"
            android:layout_alignParentBottom="true"
            android:background="@color/line_color_2" />
    </RelativeLayout>

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/dp17"
        android:text="친구들에 알려 상품을 빠르게 판매해 보세요."
        android:textColor="@color/text_color_7"
        android:textSize="@dimen/dp13.5" />

    <TextView
        android:id="@+id/txt_sns_name"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/dp20"
        android:textColor="@color/text_color_4"
        android:textSize="@dimen/dp25" />

    <com.szugyi.circlemenu.view.CircleLayout
        android:id="@+id/circle_layout"
        android:layout_width="match_parent"
        android:layout_height="@dimen/dp0"
        android:layout_weight="1"
        android:layout_gravity="center_horizontal"
        circle:firstChildPosition="North">

        <com.szugyi.circlemenu.view.CircleImageView
            android:id="@+id/main_calendar_image"
            android:layout_width="@dimen/dp45"
            android:layout_height="@dimen/dp45"
            android:background="@color/transparent"
            android:elevation="2dp"
            android:src="@drawable/sell_share_insta"
            circle:name="인스타그램" />

        <com.szugyi.circlemenu.view.CircleImageView
            android:id="@+id/main_cloud_image"
            android:layout_width="@dimen/dp45"
            android:layout_height="@dimen/dp45"
            android:background="@color/transparent"
            android:elevation="2dp"
            android:src="@drawable/sell_share_blog"
            circle:name="네이버블로그" />

        <com.szugyi.circlemenu.view.CircleImageView
            android:id="@+id/main_mail_image"
            android:layout_width="@dimen/dp45"
            android:layout_height="@dimen/dp45"
            android:background="@color/transparent"
            android:elevation="2dp"
            android:src="@drawable/sell_share_tw"
            circle:name="트위터" />

        <com.szugyi.circlemenu.view.CircleImageView
            android:id="@+id/main_profile_image"
            android:layout_width="@dimen/dp45"
            android:layout_height="@dimen/dp45"
            android:background="@color/transparent"
            android:elevation="2dp"
            android:src="@drawable/sell_share_kakaost"
            circle:name="카카오스토리" />

        <com.szugyi.circlemenu.view.CircleImageView
            android:id="@+id/main_tap_image"
            android:layout_width="@dimen/dp45"
            android:layout_height="@dimen/dp45"
            android:background="@color/transparent"
            android:elevation="2dp"
            android:src="@drawable/sell_share_fb"
            circle:name="페이스북" />
    </com.szugyi.circlemenu.view.CircleLayout>

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="SNS에 내 상품 홍보하고,"
        android:textColor="@color/text_color_1"
        android:textSize="@dimen/dp13.5" />
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/dp6"
        android:text="SNS 마다 2,000원 적립 받자!"
        android:textColor="@color/text_color_1"
        android:textSize="@dimen/dp13.5" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/dp6"
        android:text="판매완료 후 인증하시면 일괄 정산해 드립니다."
        android:textColor="@color/text_color_11"
        android:textSize="@dimen/dp11.7" />

    <TextView
        android:id="@+id/btn_sell_more"
        android:layout_width="match_parent"
        android:layout_height="@dimen/dp45"
        android:layout_marginTop="@dimen/dp20"
        android:gravity="center"
        android:text="판매하실 상품이 더 있으세요?"
        android:textColor="@color/white"
        android:textSize="@dimen/dp13.5"
        android:background="@color/bg_clear_blue" />
</LinearLayout>


text:
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
using ShareFile.Api.Client.Models;
using System.Runtime.ExceptionServices;
using ShareFile.Api.Client.Extensions;
using ShareFile.Api.Client.Requests;
using System.Buffers;

namespace ShareFile.Api.Client.Transfers.Downloaders
{
    public class AsyncFileDownloader : AsyncDownloaderBase
    {
        public AsyncFileDownloader(Item item, IShareFileClient client, DownloaderConfig config = null)
            : base(item, client, config)
        { }

        public AsyncFileDownloader(DownloadSpecification downloadSpecification, IShareFileClient client, DownloaderConfig config = null)
            : base(downloadSpecification, client, config)
        { }

        protected override async Task InternalDownloadAsync(Stream outputStream, RangeRequest rangeRequest, CancellationToken cancellationToken)
        {
            var streamQuery = CreateDownloadStreamQuery(rangeRequest);
            Stream downloadStream = null;
            try
            {
                downloadStream = await streamQuery.ExecuteAsync(cancellationToken).ConfigureAwait(false);
                downloadStream = ExpectedLengthStream(downloadStream);
                await ReadAllBytesAsync(outputStream, downloadStream, cancellationToken).ConfigureAwait(false);
            }
            finally
            {
                downloadStream?.Dispose();
            }
        }

#if PORTABLE || NETSTANDARD1_3
        private async Task ReadAllBytesAsync(Stream fileStream, Stream stream, CancellationToken cancellationToken)
        {
            var buffer = new byte[Configuration.BufferSize];

            using (var timeoutToken = new CancellationTokenSource())
            {
                // Link the two tokens so that it will either timeout or be user-cancellable
                using (
                    var linkedToken = CancellationTokenSource.CreateLinkedTokenSource(
                        timeoutToken.Token,
                        cancellationToken))
                {
                    int bytesRead;
                    do
                    {
                        timeoutToken.CancelAfter(Client.Configuration.HttpTimeout);

                        bytesRead = await stream.ReadAsync(buffer, 0, buffer.Length, linkedToken.Token).ConfigureAwait(false);

                        if (bytesRead > 0)
                        {
                            fileStream.Write(buffer, 0, bytesRead);
                            progressReporter.ReportProgress(bytesRead);
                            await TryPauseAsync(cancellationToken).ConfigureAwait(false);
                        }

                    }
                    while (bytesRead > 0);
                }
            }
        }
#else
        private async Task ReadAllBytesAsync(Stream fileStream, Stream stream, CancellationToken cancellationToken)
        {
            if (stream.CanTimeout)
            {
                stream.ReadTimeout = Client.Configuration.HttpTimeout;
            }

            var timeoutTimer = System.Diagnostics.Stopwatch.StartNew();
            var cancellationTaskSource = new TaskCompletionSource<bool>();
            var cancellationCallbackRegistration = cancellationToken.Register(CancellationCallback, cancellationTaskSource);
            var buffer = ArrayPool<byte>.Shared.Rent(Configuration.BufferSize);
            try
            {
                var timeoutTask = TimeoutChecker(timeoutTimer);
                var cancellationTask = cancellationTaskSource.Task;
                int bytesRead;
                do
                {
                    // NetworkStream.ReadAsync does not respect cancellationToken or readTimeout.
                    var readTask = stream.ReadAsync(buffer, 0, buffer.Length, cancellationToken);

                    // Wait until either the read finishes, the timeout is reached, or the user cancels the download.
                    var finishedTask = await Task.WhenAny(readTask, timeoutTask, cancellationTask).ConfigureAwait(false);
                    if(finishedTask != readTask)
                    {
                        // Download timed out or cancelled, but the read is still running. If it throws, swallow the exception.
                        WaitForFinalRead(readTask, buffer);
                        // The read is still using the buffer. Don't release it until the read finishes.
                        buffer = null;
                        throw finishedTask == timeoutTask ? new TimeoutException() : (Exception)new TaskCanceledException();
                    }
                    // Read finished (but may throw on await).
                    bytesRead = await readTask.ConfigureAwait(false);
                    if (bytesRead > 0)
                    {
                        await fileStream.WriteAsync(buffer, 0, bytesRead, cancellationToken).ConfigureAwait(false);
                        progressReporter.ReportProgress(bytesRead);
                        await TryPauseAsync(cancellationToken).ConfigureAwait(false);
                    }
                    timeoutTimer.Restart();
                }
                while (bytesRead > 0);
            }
            finally
            {
                if (buffer != null)
                {
                    ArrayPool<byte>.Shared.Return(buffer);
                }
                cancellationCallbackRegistration.Dispose();
                timeoutTimer.Stop();
            }
        }

        private static void CancellationCallback(object cancellationTaskSource)
        {
            ((TaskCompletionSource<bool>)cancellationTaskSource).SetResult(result: true);
        }

        private static void WaitForFinalRead(Task readTask, byte[] buffer)
        {
            Task.Run(async () =>
            {
                try
                {
                    await readTask.ConfigureAwait(false);
                }
                catch { }
                finally
                {
                    ArrayPool<byte>.Shared.Return(buffer);
                }
            }).ConfigureAwait(false);
        }

        private async Task TimeoutChecker(System.Diagnostics.Stopwatch timeoutTimer)
        {
            TimeSpan readTimeout = TimeSpan.FromMilliseconds(Client.Configuration.HttpTimeout);
            while(timeoutTimer.IsRunning)
            {
                TimeSpan timeSinceLastRead = timeoutTimer.Elapsed;
                if(timeSinceLastRead > readTimeout)
                {
                    return;
                }
                await Task.Delay(readTimeout - timeSinceLastRead);
            }
        }
#endif
    }
}


text:
package com.connorhaigh.javavpk;

import java.io.File;

import com.connorhaigh.javavpk.core.Archive;
import com.connorhaigh.javavpk.core.Directory;
import com.connorhaigh.javavpk.core.Entry;

public class JavaVPK
{
	/**
	 * Main method.
	 * @param args application arguments
	 */
	public static void main(String[] args)
	{
		//header
		System.out.println("JavaVPK");
		System.out.println("(C) Connor Haigh 2014");
		System.out.println();

		if (args.length <= 0)
		{
			//usage
			System.out.println("Usage:");
			System.out.println("\t" + JavaVPK.INPUT_OPTION + "\t\tSpecify the input VPK file");
			System.out.println("\t" + JavaVPK.OUTPUT_OPTION +"\t\tSpecify the output directory");
			System.out.println("\t" + JavaVPK.VERBOSE_OPTION + "\tToggle verbose output");

			return;
		}

		//parameters
		String input = null;
		String output = null;
		boolean verbose = false;

		try
		{
			//loop arguments
			for (int argument = 0; argument < args.length; argument++)
			{
				switch (args[argument])
				{
					case JavaVPK.INPUT_OPTION:
					{
						input = args[++argument];

						break;
					}
					case JavaVPK.OUTPUT_OPTION:
					{
						output = args[++argument];

						break;
					}
					case JavaVPK.VERBOSE_OPTION:
					{
						verbose = true;

						break;
					}
				}
			}

			//check arguments
			if (input == null || output == null)
				throw new Exception();
		}
		catch (Exception exception)
		{
			//invalid arguments
			System.err.println("Invalid arguments specified");

			return;
		}

		//create files
		File inputFile = new File(input);
		File outputDirectory = new File(output);

		try
		{
			//create directory
			System.out.println("Creating output directory...");
			outputDirectory.mkdirs();

			//load
			System.out.println("Loading archive...");
			Archive archive = new Archive(inputFile);
			archive.load();

			if (verbose)
			{
				//details
				System.out.println("\t" + inputFile.getName());
				System.out.println("\tSignature: " + archive.getSignature());
				System.out.println("\tVersion: " + archive.getVersion());
				System.out.println("\tDirectories: " + archive.getDirectories().size());
			}

			//loop directories
			System.out.println("Extracting all entries...");
			for (Directory directory : archive.getDirectories())
			{
				if (verbose)
					System.out.println("\t" + directory.getPath());

				//loop entries
				for (Entry entry : directory.getEntries())
				{
					if (verbose)
						System.out.println("\t\t" + entry.getFullName());

					try
					{
						//extract
						File entryDirectory = new File(outputDirectory, directory.getPath());
						File entryFile = new File(outputDirectory, directory.getPathFor(entry));
						entryDirectory.mkdirs();
						entry.extract(entryFile);
					}
					catch (Exception exception)
					{
						throw exception;
					}
				}
			}

			//done
			System.out.println("Extracted all entries successfully");
		}
		catch (Exception exception)
		{
			//failed
			System.err.println();
			System.err.println("Error during extraction: " + exception.getMessage());
		}
	}

	public static final String INPUT_OPTION = "-input";
	public static final String OUTPUT_OPTION = "-output";
	public static final String VERBOSE_OPTION = "-verbose";
}


text:
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.0
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace VSOnlineConnectedService.Properties {
    using System;

    /// <summary>
    ///   A strongly-typed resource class, for looking up localized strings, etc.
    /// </summary>
    // This class was auto-generated by the StronglyTypedResourceBuilder
    // class via a tool like ResGen or Visual Studio.
    // To add or remove a member, edit your .ResX file then rerun ResGen
    // with the /str option, or rebuild your VS project.
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
    public class Resources {

        private static global::System.Resources.ResourceManager resourceMan;

        private static global::System.Globalization.CultureInfo resourceCulture;

        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
        internal Resources() {
        }

        /// <summary>
        ///   Returns the cached ResourceManager instance used by this class.
        /// </summary>
        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
        public static global::System.Resources.ResourceManager ResourceManager {
            get {
                if (object.ReferenceEquals(resourceMan, null)) {
                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("VSOnlineConnectedService.Properties.Resources", typeof(Resources).Assembly);
                    resourceMan = temp;
                }
                return resourceMan;
            }
        }

        /// <summary>
        ///   Overrides the current thread's CurrentUICulture property for all
        ///   resource lookups using this strongly typed resource class.
        /// </summary>
        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
        public static global::System.Globalization.CultureInfo Culture {
            get {
                return resourceCulture;
            }
            set {
                resourceCulture = value;
            }
        }

        /// <summary>
        ///   Looks up a localized string similar to The scaffolding code will provide a prompt for non-default credentials to be specified at runtime to authenticate to VSOnline..
        /// </summary>
        public static string Auth_BasicAuthDescription {
            get {
                return ResourceManager.GetString("Auth_BasicAuthDescription", resourceCulture);
            }
        }

        /// <summary>
        ///   Looks up a localized string similar to Basic Authentication.
        /// </summary>
        public static string Auth_BasicAuthTitle {
            get {
                return ResourceManager.GetString("Auth_BasicAuthTitle", resourceCulture);
            }
        }

        /// <summary>
        ///   Looks up a localized string similar to The scaffolding code will use the runtime caller's Windows credentials to authenticate to VSOnline..
        /// </summary>
        public static string Auth_IntegratedAuthDescription {
            get {
                return ResourceManager.GetString("Auth_IntegratedAuthDescription", resourceCulture);
            }
        }

        /// <summary>
        ///   Looks up a localized string similar to Integrated Authentication.
        /// </summary>
        public static string Auth_IntegratedAuthTitle {
            get {
                return ResourceManager.GetString("Auth_IntegratedAuthTitle", resourceCulture);
            }
        }

        /// <summary>
        ///   Looks up a localized string similar to Used when running in headless scenarios, where you need a username/password in the app as there's no user interaction.
        /// </summary>
        public static string Auth_ServiceAccountDescription {
            get {
                return ResourceManager.GetString("Auth_ServiceAccountDescription", resourceCulture);
            }
        }

        /// <summary>
        ///   Looks up a localized string similar to Service Account w/Username and Password.
        /// </summary>
        public static string Auth_ServiceAccountTitle {
            get {
                return ResourceManager.GetString("Auth_ServiceAccountTitle", resourceCulture);
            }
        }

        /// <summary>
        ///   Looks up a localized string similar to https://github.com/SteveLasker/VSOnlineConnectedService/blob/master/Docs/GettingStarted/GettingStarted.md.
        /// </summary>
        public static string GettingStartedURL {
            get {
                return ResourceManager.GetString("GettingStartedURL", resourceCulture);
            }
        }

        /// <summary>
        ///   Looks up a localized string similar to How will your app authenticate to Visual Studio Online at runtime?.
        /// </summary>
        public static string RuntimeAuthPageDescription {
            get {
                return ResourceManager.GetString("RuntimeAuthPageDescription", resourceCulture);
            }
        }

        /// <summary>
        ///   Looks up a localized string similar to Visual Studio Online.
        /// </summary>
        public static string RuntimeAuthPageTitle {
            get {
                return ResourceManager.GetString("RuntimeAuthPageTitle", resourceCulture);
            }
        }

        /// <summary>
        ///   Looks up a localized string similar to Runtime Auth.
        /// </summary>
        public static string RunttimeAuthPageLegend {
            get {
                return ResourceManager.GetString("RunttimeAuthPageLegend", resourceCulture);
            }
        }

        /// <summary>
        ///   Looks up a localized string similar to Select the Server.
        /// </summary>
        public static string TeamProjectPageDescription {
            get {
                return ResourceManager.GetString("TeamProjectPageDescription", resourceCulture);
            }
        }

        /// <summary>
        ///   Looks up a localized string similar to Connection.
        /// </summary>
        public static string TeamProjectPageLegend {
            get {
                return ResourceManager.GetString("TeamProjectPageLegend", resourceCulture);
            }
        }

        /// <summary>
        ///   Looks up a localized string similar to Visual Studio Online.
        /// </summary>
        public static string TeamProjectPageTitle {
            get {
                return ResourceManager.GetString("TeamProjectPageTitle", resourceCulture);
            }
        }
    }
}


text:
SELECT * FROM Towns
SELECT * FROM Departments
SELECT * FROM Employees

--20. Basic Select All Fields and Order Them
SELECT * FROM Towns
ORDER BY Name
SELECT * FROM Departments
ORDER BY Name
SELECT * FROM Employees
ORDER BY Salary DESC

--21. Basic Select Some Fields
SELECT Name FROM Towns
ORDER BY Name
SELECT Name FROM Departments
ORDER BY Name
SELECT FirstName, LastName, JobTitle, Salary FROM Employees
ORDER BY Salary DESC

--22. Increase Employees Salary
UPDATE Employees
SET Salary+=Salary*0.1
SELECT Salary FROM Employees

--23. Decrease Tax Rate Hotel Database
UPDATE Payments
SET TaxRate-=TaxRate*0.03
SELECT TaxRate FROM Payments

--24. Delete All Records From Hotel Database table Occupancies
TRUNCATE TABLE Occupancies


text:
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Flashpoint</title>
        <script src="js/jquery-1.7.1.min.js"></script>
        <script src="js/jquery.mousewheel-min.js"></script>
        <script src="js/jquery.terminal-min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.js"></script>
        <link href="css/jquery.terminal.css" rel="stylesheet"/>

        <link href="css/site.css" rel="stylesheet"/>

        <script type="application/javascript">
          function ipcallback(json) {
            console.log("JSON", json);
            window.USER_IP = json.ip;
          }
        </script>
        <script type="application/javascript" src="http://api.ipify.org?format=jsonp&callback=ipcallback"></script>

    </head>

    <body>
      <div id="home" class="terminal">
      </div>

      <script src="js/site.js"></script>

    </body>
</html>