text:
package format

import (
	"bufio"
	"bytes"
	"fmt"
	"sort"
	"strings"

	"github.com/hashicorp/hcl2/hcl"
	"github.com/hashicorp/hcl2/hcled"
	"github.com/hashicorp/hcl2/hclparse"
	"github.com/hashicorp/terraform-plugin-sdk/internal/tfdiags"
	"github.com/mitchellh/colorstring"
	wordwrap "github.com/mitchellh/go-wordwrap"
	"github.com/zclconf/go-cty/cty"
)

// Diagnostic formats a single diagnostic message.
//
// The width argument specifies at what column the diagnostic messages will
// be wrapped. If set to zero, messages will not be wrapped by this function
// at all. Although the long-form text parts of the message are wrapped,
// not all aspects of the message are guaranteed to fit within the specified
// terminal width.
func Diagnostic(diag tfdiags.Diagnostic, sources map[string][]byte, color *colorstring.Colorize, width int) string {
	if diag == nil {
		// No good reason to pass a nil diagnostic in here...
		return ""
	}

	var buf bytes.Buffer

	switch diag.Severity() {
	case tfdiags.Error:
		buf.WriteString(color.Color("\n[bold][red]Error: [reset]"))
	case tfdiags.Warning:
		buf.WriteString(color.Color("\n[bold][yellow]Warning: [reset]"))
	default:
		// Clear out any coloring that might be applied by Terraform's UI helper,
		// so our result is not context-sensitive.
		buf.WriteString(color.Color("\n[reset]"))
	}

	desc := diag.Description()
	sourceRefs := diag.Source()

	// We don't wrap the summary, since we expect it to be terse, and since
	// this is where we put the text of a native Go error it may not always
	// be pure text that lends itself well to word-wrapping.
	fmt.Fprintf(&buf, color.Color("[bold]%s[reset]\n\n"), desc.Summary)

	if sourceRefs.Subject != nil {
		// We'll borrow HCL's range implementation here, because it has some
		// handy features to help us produce a nice source code snippet.
		highlightRange := sourceRefs.Subject.ToHCL()
		snippetRange := highlightRange
		if sourceRefs.Context != nil {
			snippetRange = sourceRefs.Context.ToHCL()
		}

		// Make sure the snippet includes the highlight. This should be true
		// for any reasonable diagnostic, but we'll make sure.
		snippetRange = hcl.RangeOver(snippetRange, highlightRange)
		if snippetRange.Empty() {
			snippetRange.End.Byte++
			snippetRange.End.Column++
		}
		if highlightRange.Empty() {
			highlightRange.End.Byte++
			highlightRange.End.Column++
		}

		var src []byte
		if sources != nil {
			src = sources[snippetRange.Filename]
		}
		if src == nil {
			// This should generally not happen, as long as sources are always
			// loaded through the main loader. We may load things in other
			// ways in weird cases, so we'll tolerate it at the expense of
			// a not-so-helpful error message.
			fmt.Fprintf(&buf, "  on %s line %d:\n  (source code not available)\n", highlightRange.Filename, highlightRange.Start.Line)
		} else {
			file, offset := parseRange(src, highlightRange)

			headerRange := highlightRange

			contextStr := hcled.ContextString(file, offset-1)
			if contextStr != "" {
				contextStr = ", in " + contextStr
			}

			fmt.Fprintf(&buf, "  on %s line %d%s:\n", headerRange.Filename, headerRange.Start.Line, contextStr)

			// Config snippet rendering
			sc := hcl.NewRangeScanner(src, highlightRange.Filename, bufio.ScanLines)
			for sc.Scan() {
				lineRange := sc.Range()
				if !lineRange.Overlaps(snippetRange) {
					continue
				}
				beforeRange, highlightedRange, afterRange := lineRange.PartitionAround(highlightRange)
				before := beforeRange.SliceBytes(src)
				highlighted := highlightedRange.SliceBytes(src)
				after := afterRange.SliceBytes(src)
				fmt.Fprintf(
					&buf, color.Color("%4d: %s[underline]%s[reset]%s\n"),
					lineRange.Start.Line,
					before, highlighted, after,
				)
			}

		}

		if fromExpr := diag.FromExpr(); fromExpr != nil {
			// We may also be able to generate information about the dynamic
			// values of relevant variables at the point of evaluation, then.
			// This is particularly useful for expressions that get evaluated
			// multiple times with different values, such as blocks using
			// "count" and "for_each", or within "for" expressions.
			expr := fromExpr.Expression
			ctx := fromExpr.EvalContext
			vars := expr.Variables()
			stmts := make([]string, 0, len(vars))
			seen := make(map[string]struct{}, len(vars))
		Traversals:
			for _, traversal := range vars {
				for len(traversal) > 1 {
					val, diags := traversal.TraverseAbs(ctx)
					if diags.HasErrors() {
						// Skip anything that generates errors, since we probably
						// already have the same error in our diagnostics set
						// already.
						traversal = traversal[:len(traversal)-1]
						continue
					}

					traversalStr := traversalStr(traversal)
					if _, exists := seen[traversalStr]; exists {
						continue Traversals // don't show duplicates when the same variable is referenced multiple times
					}
					switch {
					case !val.IsKnown():
						// Can't say anything about this yet, then.
						continue Traversals
					case val.IsNull():
						stmts = append(stmts, fmt.Sprintf(color.Color("[bold]%s[reset] is null"), traversalStr))
					default:
						stmts = append(stmts, fmt.Sprintf(color.Color("[bold]%s[reset] is %s"), traversalStr, compactValueStr(val)))
					}
					seen[traversalStr] = struct{}{}
				}
			}

			sort.Strings(stmts) // FIXME: Should maybe use a traversal-aware sort that can sort numeric indexes properly?

			if len(stmts) > 0 {
				fmt.Fprint(&buf, color.Color("    [dark_gray]|----------------[reset]\n"))
			}
			for _, stmt := range stmts {
				fmt.Fprintf(&buf, color.Color("    [dark_gray]|[reset] %s\n"), stmt)
			}
		}

		buf.WriteByte('\n')
	}

	if desc.Detail != "" {
		detail := desc.Detail
		if width != 0 {
			detail = wordwrap.WrapString(detail, uint(width))
		}
		fmt.Fprintf(&buf, "%s\n", detail)
	}

	return buf.String()
}

func parseRange(src []byte, rng hcl.Range) (*hcl.File, int) {
	filename := rng.Filename
	offset := rng.Start.Byte

	// We need to re-parse here to get a *hcl.File we can interrogate. This
	// is not awesome since we presumably already parsed the file earlier too,
	// but this re-parsing is architecturally simpler than retaining all of
	// the hcl.File objects and we only do this in the case of an error anyway
	// so the overhead here is not a big problem.
	parser := hclparse.NewParser()
	var file *hcl.File
	var diags hcl.Diagnostics
	if strings.HasSuffix(filename, ".json") {
		file, diags = parser.ParseJSON(src, filename)
	} else {
		file, diags = parser.ParseHCL(src, filename)
	}
	if diags.HasErrors() {
		return file, offset
	}

	return file, offset
}

// traversalStr produces a representation of an HCL traversal that is compact,
// resembles HCL native syntax, and is suitable for display in the UI.
func traversalStr(traversal hcl.Traversal) string {
	// This is a specialized subset of traversal rendering tailored to
	// producing helpful contextual messages in diagnostics. It is not
	// comprehensive nor intended to be used for other purposes.

	var buf bytes.Buffer
	for _, step := range traversal {
		switch tStep := step.(type) {
		case hcl.TraverseRoot:
			buf.WriteString(tStep.Name)
		case hcl.TraverseAttr:
			buf.WriteByte('.')
			buf.WriteString(tStep.Name)
		case hcl.TraverseIndex:
			buf.WriteByte('[')
			if keyTy := tStep.Key.Type(); keyTy.IsPrimitiveType() {
				buf.WriteString(compactValueStr(tStep.Key))
			} else {
				// We'll just use a placeholder for more complex values,
				// since otherwise our result could grow ridiculously long.
				buf.WriteString("...")
			}
			buf.WriteByte(']')
		}
	}
	return buf.String()
}

// compactValueStr produces a compact, single-line summary of a given value
// that is suitable for display in the UI.
//
// For primitives it returns a full representation, while for more complex
// types it instead summarizes the type, size, etc to produce something
// that is hopefully still somewhat useful but not as verbose as a rendering
// of the entire data structure.
func compactValueStr(val cty.Value) string {
	// This is a specialized subset of value rendering tailored to producing
	// helpful but concise messages in diagnostics. It is not comprehensive
	// nor intended to be used for other purposes.

	ty := val.Type()
	switch {
	case val.IsNull():
		return "null"
	case !val.IsKnown():
		// Should never happen here because we should filter before we get
		// in here, but we'll do something reasonable rather than panic.
		return "(not yet known)"
	case ty == cty.Bool:
		if val.True() {
			return "true"
		}
		return "false"
	case ty == cty.Number:
		bf := val.AsBigFloat()
		return bf.Text('g', 10)
	case ty == cty.String:
		// Go string syntax is not exactly the same as HCL native string syntax,
		// but we'll accept the minor edge-cases where this is different here
		// for now, just to get something reasonable here.
		return fmt.Sprintf("%q", val.AsString())
	case ty.IsCollectionType() || ty.IsTupleType():
		l := val.LengthInt()
		switch l {
		case 0:
			return "empty " + ty.FriendlyName()
		case 1:
			return ty.FriendlyName() + " with 1 element"
		default:
			return fmt.Sprintf("%s with %d elements", ty.FriendlyName(), l)
		}
	case ty.IsObjectType():
		atys := ty.AttributeTypes()
		l := len(atys)
		switch l {
		case 0:
			return "object with no attributes"
		case 1:
			var name string
			for k := range atys {
				name = k
			}
			return fmt.Sprintf("object with 1 attribute %q", name)
		default:
			return fmt.Sprintf("object with %d attributes", l)
		}
	default:
		return ty.FriendlyName()
	}
}


text:
var path = require('path');
var webpack = require('webpack');

module.exports = {
  entry: [
    path.join(__dirname, 'main.js')
  ],

  output: {
    path: path.join(__dirname, 'dist'),
    filename: '[hash].app.js'
  },

  module: {
    loaders: [
      {test: /\.js$/, exclude: /node_modules/, loader: 'babel'},
      {test: /\.less$/, loader: 'style!css!autoprefixer!less'}
    ]
  },

  resolve: {
    alias: {
      'react-mobile-picker': path.join(__dirname, '..', 'src')
    }
  },

  plugins: [
    new webpack.optimize.OccurenceOrderPlugin(),
    new webpack.DefinePlugin({
      'process.env': {
        NODE_ENV: '"production"'
      }
    }),
    new webpack.optimize.UglifyJsPlugin({
      compressor: {
        warnings: false
      }
    })
  ]
};

redpajama_set_name: RedPajamaGithub


text:
module.exports.addTeamStaffRelationship = (
  knex,
  numTeams,
  numStaff,
  numSemesters,
) => {
  if (numSemesters !== 1) {
    throw new Error(
      'This function only supports a single semester at the moment' +
        ' it needs to be modified if you need it to support several semesters',
    );
  }
  const rows = [];
  let id = 0;
  for (let teamId = 1; teamId <= numTeams; teamId++) {
    const numStaffInTeam = [];
    for (let k = 0; k < numTeams; k++) {
      numStaffInTeam.push(0);
    }
    for (let staffId = 1; staffId <= numStaff; staffId++) {
      const staffInTeam = ((staffId - 1) % numTeams) + 1 === teamId;
      if (staffInTeam) {
        id += 1;
        const teamOrder = teamId - 1;
        const staffOrder = numStaffInTeam[teamOrder];
        numStaffInTeam[teamOrder] += 1;
        rows.push({
          id,
          team_id: teamId,
          staff_id: staffId,
          team_order: teamOrder,
          staff_order: staffOrder,
          semester_id: 1,
        });
      }
    }
  }
  return knex('teams_staff').insert(rows);
};


text:
var express  = require('express');
var app = express()
  , http = require('http')
  , server = http.createServer(app)
  , io = require('socket.io').listen(server);
var port     = process.env.PORT || 8080;
var objects = {};
var texture = {};
var num = {};
//var Leap = require('leapjs');//require('../leapjs/lib/index').Leap;
//var t = require('leapjs');
//console.log("-------",t)
// var previousFrame;
// var paused = false;

// // Setup Leap loop with frame callback function
// var controllerOptions = {
//   enableGestures: true
// };

// Leap.loop(controllerOptions, function(frame, done) {
//   if (paused) {
//     return; // Skip this update
//   }

//   // Hand object data
//   if (frame.hands.length > 0) {
//     if (frame.hands.length == 1) {
//       console.log(
//         vectorToList(frame.hands[0].palmPosition) + " "+
//         vectorToList(frame.hands[0].palmNormal) +
//         // when there is no second hand put a bunch of zeros.
//         " 0 0 0 0 0 0" +
//         "\r\n"	);
//       p = ""
//       if(frame.pointables[0]){
//   		p = frame.pointables[0].tipPosition;

//   		console.log("point - ",p)
//  	 	}

//       io.sockets.emit("leap",
//         vectorToList(frame.hands[0].palmPosition) +" "+
//         vectorToList(frame.hands[0].palmNormal) +
//         // when there is no second hand put a bunch of zeros.
//         " 0 0 0 0 0 0",frame.gestures[0],p);

//     } else {
//       console.log(
//         vectorToList(frame.hands[0].palmPosition) +" "+
//         vectorToList(frame.hands[0].palmNormal) +" "+
//         // when there is a second hand, show the palm position and normal for the second hand.
//         vectorToList(frame.hands[1].palmPosition) +" "+
//         vectorToList(frame.hands[1].palmNormal) +
//         "\r\n");

//       p = ""
//       if(frame.pointables[0]){
//   		p = frame.pointables[0].tipPosition;
//   		console.log("point - ",p)
//  	 }
//       io.sockets.emit("leap",
//         vectorToList(frame.hands[0].palmPosition) +" "+
//         vectorToList(frame.hands[0].palmNormal) +" "+
//         // when there is a second hand, show the palm position and normal for the second hand.
//         vectorToList(frame.hands[1].palmPosition) +" "+
//         vectorToList(frame.hands[1].palmNormal),frame.gestures[0],p
//         );
//     }
//   }

//   previousFrame = frame;
//   done();
// })

// function vectorToList(vector, digits) {
//   if (typeof digits === "undefined") {
//     digits = 3;
//   }
//   return vector[0].toFixed(digits) + " " + vector[1].toFixed(digits) + " " + vector[2].toFixed(digits) + "";
// }

var routesLib = require('./javascripts/routesLib.js');
var fs = require('fs');

app.configure(function() {

	// set up our express application
	app.use(express.logger('dev')); // log every request to the console
	app.use(express.cookieParser()); // read cookies (needed for auth)
	app.use(express.bodyParser()); // get information from html forms

	app.set('view engine', 'ejs'); // set up ejs for templating
});

// routes ======================================================================
require('./app/routes.js')(app,fs,routesLib); // load our routes and pass in our app and fully configured passport

server.listen(port);

io.set('log level', 1);

io.sockets.on('connection', function(socket) {

	if(objects[socket.handshake.address.address]){
		socket.emit("register",objects[socket.handshake.address.address],texture[socket.handshake.address.address] ,num[socket.handshake.address.address]);

	}else{

		objects[socket.handshake.address.address] = {};
		texture[socket.handshake.address.address] = "default";
		num[socket.handshake.address.address] = 0;
	}

	socket.on("createObject",function(data,number){
		console.log("createObject - ",arguments);
		objects[socket.handshake.address.address][data.name] = data;
		num[socket.handshake.address.address] = number;

	});

	socket.on("updatePos",function(name,data){
		console.log("updatePos - ",arguments);
		objects[socket.handshake.address.address][name].pos = data;

	});

	socket.on("updateDim",function(name,data){
		console.log("updateDim - ",arguments);
		objects[socket.handshake.address.address][name].dimensions = data;
		console.log(objects);

	});

	socket.on("changeTexture",function(data){
		console.log("changeTexture - ",arguments);
		texture[socket.handshake.address.address] = data;

	});

	socket.on("remove",function(name){
		console.log("remove - ",arguments);
		delete objects[socket.handshake.address.address][name];
	})
});


text:
"""
# From command line:
python compiler.py

# This will show sample output from sample data

# From within program

# define input_data as in the following example. It reprents user_input as in sheet 2.

	input_data = {
		"site_scenario":{
			"land_use":"Unrestricted",
			"groundwater_use":"drinking", #not_drinking
			"sw_distance":"not_close", #close
			"name":"My house",
			"address":"123 Happy Place",
			"site_id":"553423",
			"timestamp":0
		},
		"contaminants":
		[
			{
				"choice":"Chemical Name",
				"contaminant":"ACENAPHTHENE",
				"concentrations":
				{
					"soil":10,
					"groundwater":10,
					"soil_vapor":10,
				}
			}
		],
	}

from compiler import SurferReport
report = SurferReport(input_data)
report.record

# report.record will be a dictionary with the data found in spreadsheet 4

# Sample output:

{
	'site_scenario':
	{
		'land_use': 'Unrestricted',
		'groundwater_use': 'Drinking Water Resource',
		'sw_distance': 'not_close',
		'name': 'My house',
		'address': '123 Happy Place',
		'site_id': '553423',
		'timestamp': 0
	},
	'contaminants':
	[{
		'concentrations':
		{
			'soil': 10,
			'groundwater': 10,
			'soil_vapor': 10
		},
		'contaminant': 'ACENAPHTHENE',
		'soil_hazards':
		{
			'direct_exposure':
			{
				'units': 'mg/kg',
				'action_level': '-',
				'potential_hazard': '-',
				'table': 'Table I-1'
			},
			'vapor_emissions':
			{
				'units': 'mg/kg',
				'action_level': '-',
				'potential_hazard': '-',
				'table': 'Table C-1b'
			},
			'ecotoxicity':
			{
				'units': 'mg/kg',
				'action_level': '-',
				'potential_hazard': '-',
				'table': 'Table L'
			},
			'gross_contamination':
			{
				'units': 'mg/kg',
				'action_level': '-',
				'potential_hazard': '-',
				'table': 'Table F-2'
			},
			'leaching':
			{
				'units': 'mg/kg',
				'action_level': '-',
				'potential_hazard': '-',
				'table': 'Table E-1'
			},
			'background':
			{'units': 'mg/kg',
			 'action_level': '-'
			},
			'eal':
			{
				'units': 'mg/kg',
				'action_level': '-'
			},
			'basis': 'Background'
		}
	}
	]
}
"""

import json
import sys
import logging

logging_format = '%(asctime)s %(message)s'
logging.basicConfig(format=logging_format, level=logging.INFO)

help_ = """

We will work with mongodb by default.

A record will correspond to a specific project and chemical.
"""

def db_lookup(value, db, table, field, mongo=False):
	if mongo:
		return mongo_lookup(value, db, table, field)
	else:
		sqlite_lookup(value, db, table, field)

def mongo_lookup(value, db, collection, field):
	try:
		result = next(db[collection].find({"contaminant":value}))
	except StopIteration:
		logging.info("Cannot find {} in {}".format(value, collection))
		return -1
	try:
		return result[field]
	except KeyError:
		print(value, collection, field)
		sys.exit(1)

def is_float(x):
	try:
		float(x)
		return True
	except:
		return False

def sqlite_lookup(value, db, table, field):
	query_command = "SELECT {} FROM {} WHERE contaminant=?".format(field, table)
	cursor = db.cursor()
	cursor.execute(query_command, value)

class SurferReport:
	"""
	An object to represent the data found in Sheet labeled
	4. EAL Surfer - Surfer Report
	"""

	def __init__(self, input_data, db_name, mongo=True):
		"""
		"""
		self.db_name = db_name
		self.mongo = mongo # boolean
		self.db = self._db_connect('localhost', 27017)
		self.record = self._create_record(input_data)

	def _db_connect(self, mongohost, mongoport):
		if self.mongo:
			from pymongo import MongoClient
			client = MongoClient(mongohost, mongoport)

			return client[self.db_name]

		else:
			import sqlite3
			return sqlite3.connect(self.db_name)

	def to_db(self, mongohost, mongoport, database, collection_name):
		"""
		"""
		client = MongoClient(mongohost, mongoport)
		db = client[database]
		collection = db[collection_name]
		collection.insert(self.record)

	def _create_record(self, input_data):
		"""
		Produces a record such as:

		{
		"site_scenario":{"name":__, "address":__, "site_id":__, "land_use":__, "groundwater_use":__, "sw_distance":__},
		:contaminants:[{"contaminant":__,
		"concentrations":__,
		"soil_hazards": __}]
		}
		"""
		concentration_keys = [
			"soil",
			"groundwater",
			"soil_vapor"
		]
		soil_contamination_unit = "mg/kg"
		soil_keys = [
			"direct_exposure",
			"vapor_emissions",
			"ecotoxicity",
			"gross_contamination",
			"leaching"
		]
		other_soil_keys = [
			"background",
			"eal"
		]
		basis = "basis"
		record = {}
		#
		record["site_scenario"] = input_data["site_scenario"]
		#
		record["site_scenario"] = input_data["site_scenario"]
		#
		record["contaminants"] = []

		#

		for chemical_data in input_data["contaminants"]:
			# Example of chemical_data
			# {
			# 	"choice":"Chemical Name",
			# 	"contaminant":"ACENAPHTHENE",
			# 	"site_scenario":
			# 	{
			# 		"soil":10,
			# 		"groundwater":10,
			# 		"soil_vapor":10,
			# 	}
			# }
			out_data = {}
			out_data["concentrations"] = {}
			out_data["contaminant"] = self._chemical_of_concern(chemical_data)
			for key in concentration_keys:
				out_data["concentrations"][key] = self._concentration(key, chemical_data)

			#

			out_data["soil_hazards"] = {}
			for key in soil_keys + other_soil_keys:
				out_data["soil_hazards"][key] = {}
				out_data["soil_hazards"][key]["units"] = soil_contamination_unit

			for key in soil_keys:

				out_data["soil_hazards"][key]["action_level"] = self._tier_1_action_level(key, input_data, chemical_data)
				out_data["soil_hazards"][key]["potential_hazard"] = self._potential_hazard(key, chemical_data, out_data["soil_hazards"][key]["action_level"])
				out_data["soil_hazards"][key]["table"] = self._referenced_table(key, input_data, chemical_data)

			out_data["soil_hazards"]["background"] = self._background(chemical_data["contaminant"])
			lowest = self._lowest_soil_eal(out_data["soil_hazards"], soil_keys)
			out_data["soil_hazards"][basis] = lowest[0]
			out_data["soil_hazards"]["eal"]["action_level"] = self._final_eal(lowest[1], out_data["soil_hazards"]["background"])
			record['contaminants'].append(out_data)
		return record

	def _chemical_of_concern(self, input_data):
		"""
		Spreadsheet "4. EAL Surfer - Surfer Report"
		Cell E-H 16
		References Spreadsheet 2, H3
		if D14=N27, C16, (VLOOKUP (C16, N33:)186,2,0)
		"""
		if input_data["choice"]=="Chemical Name":

			return input_data["contaminant"]
		else:
			# TODO: Look up by CAS#
			# Will need that table in a separate database
			raise NotImplementedError("Currently only supports lookup by chemical name")

	def _concentration(self, key, input_data):
		"""
		For soil, Spreadsheet 4, D19
		IF('2. EAL Surfer - Tier 1 EALs'::Table 1::D22=0,"-",'2. EAL Surfer - Tier 1 EALs'::Table 1::D22)
		"""
		value = input_data["concentrations"][key]
		if not value:
			# TODO: This is what currently exists.
			# Perhaps better null value would be better
			return "-"
		return value

	def _tier_1_action_level(self, key, input_data, chemical_data):
		"""

		"""
		if key=='leaching':
			return self._leaching_eal(input_data, chemical_data)
		tables = {
			"vapor_emissions":'Table C-1b (Soil to IA)',
			"ecotoxicity":'Table L (Soil Ecotoxicity)',
			"gross_contamination":'Table F-2 (Exposed Soils)'
		}

		fields = {
			"vapor_emissions":("unrestricted", "commercial"),
			"ecotoxicity":("residential", "commercial"),
			"gross_contamination":("final_unrestricted_action_level",
								   "final_commercial_action_level")
		}

		if input_data["site_scenario"]["land_use"]=="Unrestricted":
			if key=="direct_exposure":
				table = "Table I-2 (C-I Soil DE)"
				field = "eal"
			else:
				table = tables[key]
				field = fields[key][0]
		else:
			if key=="direct_exposure":
				table = "Table I-2 (C-I Soil DE)"
				field = "eal"
			else:
				table = tables[key]
				field = fields[key][1]
		result = self._db(chemical_data["contaminant"],
						  table,
						  field)
		if result == 0:
			return '-'
		return result

	def _final_eal(self, lowest, background):
		"""
		"""
		try:

			return max(float(background), float(lowest))
		except (ValueError, TypeError):
			return lowest

	def _potential_hazard(self, key, input_data, eal):
		"""
		e.g. IF(F24="-","-",IF($D$19="-","-",(IF($D$19>F24,"Yes","No"))))
		"""
		try:
			soil = input_data["concentrations"]["soil"]
			if  float(soil) > float(eal):
				return "Yes"
			else:
				return "No"
		except (ValueError, TypeError):
			return "-"

	def _referenced_table(self, key, input_data, chemical_data):
		"""

		"""
		reference_tables = {
			"direct_exposure":"Table I-1" if input_data["site_scenario"]["land_use"]=="Unrestricted" else "Table I-2",
			"vapor_emissions":"Table C-1b",
			"leaching":"Table E-1",
			"ecotoxicity":"Table L",
			"gross_contamination": "Table F-2",
		}
		return reference_tables[key]

	def _background(self, contaminant):
		"""
		compiler C70
		"""
		table =  "Table K (Soil Background)"
		if self._db(contaminant, "auxillary", "code")==2:

			result = self._db(contaminant,
							  table,
							  "action_level")
			if not result:
				return "?"
		else:
			return "-"

	def _leaching_eal(self, input_data, chemical_data):
		"""
		placeholder
IF(
IF(E28="YES",
   C52,
   IF(E29="YES",
      C53,
      IF(E30="YES",
          C54,
          C55)))=0,"-",IF(E28="YES",C52,IF(E29="YES",C53,IF(E30="YES",C54,C55))))
		"""

		fields = {
			('close', 'drinking'):'leaching_close_drinking',
			('close', 'not_drinking'):'leaching_close_not_drinking',
			('not_close', 'drinking'):'leaching_far_drinking',
			('not_close', 'not_drinking'): 'leaching_far_not_drinking',
		}
		table = "Table E Leaching"

		result = self._db(chemical_data["contaminant"],
						  table,
						  fields[(input_data["site_scenario"]["sw_distance"],
								  input_data["site_scenario"]["groundwater_use"])])
		if result == 0:
			return '-'
		return result

	def _lowest_soil_eal(self, hazards, keys):
		"""
		input should be out_data["soil_hazards"]
		returns key, eal
		"""
		try:
			return min(
				(
					(key, float(hazards[key]["action_level"]))
					for key in keys
					if is_float(hazards[key]["action_level"])
				),
				key=lambda __:__[1]
			)
		except ValueError:
			return ('-', '-')

	def _db(self, value, table, field):
		return db_lookup(value, self.db, table, field, self.mongo)

if __name__ == '__main__':
	input_data = {
		"site_scenario":{
			"land_use":"Unrestricted",
			"groundwater_use":"drinking", #not_drinking
			"sw_distance":"not_close", #close
			"name":"My house",
			"address":"123 Happy Place",
			"site_id":"553423",
			"timestamp":0
	 	},
		"contaminants":
		[
			{
				"choice":"Chemical Name",
				"contaminant":"ACENAPHTHENE",
				"concentrations":
				{
					"soil":10,
					"groundwater":10,
					"soil_vapor":10,
				}
			}
		],
	}

	report = SurferReport(input_data, db_name="surfer", mongo=True)
	print(json.dumps(report.record, indent=4))


text:
          <button data-toggle="collapse-side" data-target=".side-collapse" data-target-2=".side-collapse-container" type="button" class="navbar-toggle pull-left"></button>

Home

Users

Places

Hello

This is a side opening nav demonstration

Make your browser smaller and the top menu wil become into a lateral slider menu


text:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Net.NetworkInformation;
using System.Runtime.Serialization;
using System.Threading;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Navigation;
using Inbox2.Core.Configuration;
using Inbox2.Framework.Collections;
using Inbox2.Framework.Localization;
using Inbox2.Framework.Extensions;
using Inbox2.Framework.Interfaces.Enumerations;
using Inbox2.Framework.Stats;
using Inbox2.Framework.VirtualMailBox;
using Inbox2.Framework.VirtualMailBox.Entities;
using Inbox2.Platform.Channels;
using Inbox2.Platform.Channels.Entities;
using Inbox2.Platform.Framework.Collections;
using Inbox2.Platform.Framework.Extensions;
using Inbox2.Platform.Interfaces.Enumerations;
using Microsoft.Win32;
using mshtml;
using Label = Inbox2.Framework.VirtualMailBox.Entities.Label;

namespace Inbox2.Framework.Plugins.SharedControls
{
	/// <summary>
	/// Interaction logic for MessageEditControl.xaml
	/// </summary>
	public partial class MessageEditControl : UserControl, INotifyPropertyChanged
	{
		#region Fields

		public event PropertyChangedEventHandler PropertyChanged;
		public event EventHandler<EventArgs> MessageSent;
		public event EventHandler<EventArgs> SubjectUpdated;

		private readonly VirtualMailBox.VirtualMailBox mailbox = VirtualMailBox.VirtualMailBox.Current;
		private readonly CustomCompositeCollection<SourceAddress> recipients;
		private readonly AdvancedObservableCollection<AttachmentDataHelper> attachedFiles;

		private Message sourceMessage;

		#endregion

		#region Properties

		public AdvancedObservableCollection<AttachmentDataHelper> AttachedFiles
		{
			get { return attachedFiles; }
		}

		public AdvancedObservableCollection<SourceAddress> To
		{
			get { return ToRecipients.Recipients; }
		}

		public AdvancedObservableCollection<SourceAddress> CC
		{
			get { return CcRecipients.Recipients; }
		}

		public AdvancedObservableCollection<SourceAddress> BCC
		{
			get { return BccRecipients.Recipients; }
		}

		public IEnumerable<ChannelInstance> MailChannels
		{
			get
			{
				return ChannelsManager.Channels.Where(c => c.Configuration.Charasteristics.SupportsEmail);
			}
		}

		public IEnumerable<ChannelGroup> NonMailChannelGroups
		{
			get
			{
				var groups = new List<ChannelGroup>();

				foreach (ChannelInstance channel in ChannelsManager.Channels)
				{
					if (!channel.Configuration.Charasteristics.SupportsEmail)
					{
						ChannelInstance channel1 = channel;

						var existingGroup = groups.FirstOrDefault(g => g.ChannelGroupName == channel1.Configuration.DisplayName);

						if (existingGroup == null)
						{
							groups.Add(new ChannelGroup(recipients, new List<ChannelInstance> { channel }, channel.Configuration.DisplayName));
						}
						else
						{
							existingGroup.Channels.Add(channel);
						}
					}
				}

				return groups;
			}
		}

		public bool IsCCBCCFieldOpen { get; set; }

		public bool AddWaitingFor { get; set; }

		public Message SourceMessage
		{
			get { return sourceMessage; }
			set
			{
				sourceMessage = value;

				OnPropertyChanged("Channels");
			}
		}

		public string Context
		{
			get { return ContextTextBox.Text; }
		}

		public long SelectedChannelId
		{
			get
			{
				return ((ChannelInstance)FromAccount.SelectedItem).Configuration.ChannelId;
			}
			set
			{
				FromAccount.SelectedItem = ChannelsManager.GetChannelObject(value);
			}
		}

		public bool IsDraft
		{
			get
			{
				if (SourceMessage == null)
					return false;

				return SourceMessage.MessageFolder == Folders.Drafts;
			}
		}

		public string MessageText { get; set; }

		public HTMLDocument Document
		{
			get { return (HTMLDocument)HtmlView.Document; }
		}

		#endregion

		#region Construction

		public MessageEditControl()
		{
			InitializeComponent();

			recipients = new CustomCompositeCollection<SourceAddress>(To, CC, BCC);
			attachedFiles = new AdvancedObservableCollection<AttachmentDataHelper>();

			DataContext = this;
		}

		#endregion

		#region Methods

		#region Recipient handling

		public void AddToRecipient(SourceAddress recipient)
		{
			ToRecipients.AddRecipient(mailbox.Find(recipient));
		}

		public void AddToRecipient(Profile profile)
		{
			ToRecipients.AddRecipient(profile);
		}

		public void AddCCRecipient(SourceAddress recipient)
		{
			CcRecipients.AddRecipient(mailbox.Find(recipient));

			IsCCBCCFieldOpen = true;
		}

		public void AddBCCRecipient(SourceAddress recipient)
		{
			BccRecipients.AddRecipient(mailbox.Find(recipient));

			IsCCBCCFieldOpen = true;
		}

		public void AddToRecipients(IEnumerable<Profile> recipients)
		{
			foreach (var recipient in recipients)
				ToRecipients.AddRecipient(recipient);
		}

		public void AddToRecipients(IEnumerable<SourceAddress> recipients)
		{
			foreach (var recipient in recipients)
				ToRecipients.AddRecipient(mailbox.Find(recipient));
		}

		public void AddCCRecipients(IEnumerable<SourceAddress> recipients)
		{
			foreach (var recipient in recipients)
				CcRecipients.AddRecipient(mailbox.Find(recipient));

			if (CcRecipients.Recipients.Count > 0)
				IsCCBCCFieldOpen = true;
		}

		public void AddBCCRecipients(IEnumerable<SourceAddress> recipients)
		{
			foreach (var recipient in recipients)
				BccRecipients.AddRecipient(mailbox.Find(recipient));

			if (BccRecipients.Recipients.Count > 0)
				IsCCBCCFieldOpen = true;
		}

		public void ClearRecipients()
		{
			ToRecipients.ClearRecipients();
			CcRecipients.ClearRecipients();
			BccRecipients.ClearRecipients();
		}

		public void SetContext(string context)
		{
			ContextTextBox.Text = context;
		}

		#endregion

		#region Draft handling

		public void SaveDraft()
		{
			var message = CreateMessage(Folders.Drafts);

			if (message.MessageId.HasValue)
			{
				ClientState.Current.DataService.Update(message);
			}
			else
			{
				ClientState.Current.DataService.Save(message);

				mailbox.Messages.Add(message);
			}

			SaveDocuments(message, IsDraft);

			SourceMessage = message;

			EventBroker.Publish(AppEvents.MessageUpdated);

			ClientState.Current.ShowMessage(
				new AppMessage(Strings.DraftSavedSuccessfully)
				{
					EntityId = message.MessageId.Value,
					EntityType = EntityType.Message
				}, MessageType.Success);
		}

		public void CancelDraft()
		{
			SourceMessage.MoveToFolder(Folders.Trash);
		}

		#endregion

		protected override void OnInitialized(EventArgs e)
		{
			base.OnInitialized(e);

			// Load base html
			string path = AppDomain.CurrentDomain.SetupInformation.ApplicationBase;

			var isRtl = Thread.CurrentThread.CurrentCulture.TextInfo.IsRightToLeft;

			HtmlView.Navigate(new Uri(Path.Combine(path, isRtl ? "editor_rtl.html" : "editor.html")));
		}

		protected override void OnKeyUp(KeyEventArgs e)
		{
			base.OnKeyUp(e);

			if (e.Key == Key.Escape)
			{
				TryCancel();
			}
		}

		public void TryCancel()
		{
			if (IsDraft)
			{
				if (Inbox2MessageBox.Show("Cancel and move draft to trash folder?", Inbox2MessageBoxButton.YesNo).Result == Inbox2MessageBoxResult.No)
					return;
				else
					CancelDraft();
			}
			else if (HasMessageContent(true))
			{
				if (Inbox2MessageBox.Show("Cancel and lose all changes?", Inbox2MessageBoxButton.YesNo).Result == Inbox2MessageBoxResult.No)
					return;
			}

			CloseEditor();
		}

		public bool HasMessageContent(bool deepInspection)
		{
			if (deepInspection)
			{
				return !String.IsNullOrEmpty(Context.Trim()) || !String.IsNullOrEmpty(GetBodyStream().Trim()) || To.Count > 0;
			}
			else
				return !String.IsNullOrEmpty(Context.Trim());
		}

		public string GetBodyStream()
		{
			Document.parentWindow.execScript("saveContent()", "javascript");

			return ((HTMLTextAreaElement)Document.getElementById("editor")).value ?? String.Empty;
		}

		public void SendMessage()
		{
			bool wasDraft = IsDraft;

			var message = CreateMessage(Folders.SentItems);

			if (wasDraft)
			{
				// Remove message from mailbox
				mailbox.Messages.Remove(message);
			}
			else
			{
				// Save our message
				ClientState.Current.DataService.Save(message);
			}

			// Attach documents
			SaveDocuments(message, wasDraft);

			// Add message to mailbox
			EventBroker.Publish(AppEvents.MessageStored, message);

			// Save command
			CommandQueue.Enqueue(AppCommands.SendMessage, message);

			if (!NetworkInterface.GetIsNetworkAvailable())
			{
				ClientState.Current.ShowMessage(
					new AppMessage(Strings.MessageWillBeSentLater)
						{
							EntityId = message.MessageId.Value,
							EntityType = EntityType.Message
						}, MessageType.Success);
			}
		}

		Message CreateMessage(int messageFolder)
		{
			Message message = IsDraft ? SourceMessage : new Message();
			var channel = (ChannelInstance)FromAccount.SelectedItem;

			if (IsDraft)
			{
				if (message.BodyHtmlStreamName.HasValue)
				{
					// Delete old body stream
					ClientState.Current.Storage.Delete("m", message.BodyHtmlStreamName.ToString());
				}

				message.To.Clear();
				message.CC.Clear();
				message.BCC.Clear();
			}

			if (channel == null)
				channel = MailChannels.First();

			if (SourceMessage != null)
			{
				message.InReplyTo = SourceMessage.MessageIdentifier;
				message.ConversationIdentifier = SourceMessage.ConversationIdentifier;
			}
			else
			{
				message.ConversationIdentifier = Guid.NewGuid().ToConversationId();
			}

			message.Context = ContextTextBox.Text;
			message.From = new SourceAddress(channel.InputChannel.SourceAdress, SettingsManager.ClientSettings.AppConfiguration.Fullname);
			message.TargetChannelId = channel.Configuration.ChannelId;
			message.To.AddRange(To);
			message.CC.AddRange(CC);
			message.BCC.AddRange(BCC);

			var access = new ClientMessageAccess(message, null, GetBodyStream());

			message.BodyHtmlStreamName = access.WriteBodyHtml();
			message.BodyPreview = access.GetBodyPreview();
			message.IsRead = true;
			message.DateSent = DateTime.Now;
			message.MessageFolder = messageFolder;
			message.DateSent = DateTime.Now;
			message.DateCreated = DateTime.Now;

			if (AddWaitingFor && !message.IsWaitingFor)
				message.AddLabel(new Label(LabelType.WaitingFor), false);
			else if (!AddWaitingFor && message.IsWaitingFor)
				message.RemoveLabel(message.LabelsList.First(l => l.LabelType == LabelType.WaitingFor), false);

			if (SourceMessage != null)
				SourceMessage.TrackAction(ActionType.ReplyForward);

			return message;
		}

		void SaveDocuments(Message message, bool isDraft)
		{
			if (isDraft)
			{
				// Delete old attachments from message, will be re-added again below
				SourceMessage.Documents.ToList()
					.ForEach(d => d.DeleteFrom(SourceMessage));
			}

			// Add attachments to message
			foreach (var file in attachedFiles)
			{
				var document = new Document
				{
					Message = message,
					Filename = file.Filename,
					ContentType = ContentType.Attachment,
					SourceChannelId = message.SourceChannelId,
					DateCreated = DateTime.Now,
					DateSent = DateTime.Now,
					DocumentFolder = Folders.SentItems
				};

				document.StreamName = Guid.NewGuid().GetHash(12) + "_" + Path.GetExtension(document.Filename);
				document.ContentStream = new FileStream(file.Streamname, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);

				EventBroker.Publish(AppEvents.DocumentReceived, document);

				// Might needs this when deleting an attachment from a draft message
				file.DocumentId = document.DocumentId;
			}
		}

		public void CloseEditor()
		{
			if (MessageSent != null)
				MessageSent(this, EventArgs.Empty);
		}

		protected void OnPropertyChanged(string propertyName)
		{
			if (PropertyChanged != null)
			{
				PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
			}
		}

		public void Dispose()
		{
			HtmlView.Dispose();
		}

		#endregion

		#region Event handlers

		void ContextTextBox_OnLostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
		{
			if (SubjectUpdated != null)
				SubjectUpdated(this, EventArgs.Empty);
		}

		void TabSink_GotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
		{
			// Sets focus on html editor
			Document.parentWindow.execScript("focusEditor();");
		}

		void CcRecipients_LayoutUpdated(object sender, EventArgs e)
		{
			OnPropertyChanged("IsCCBCCFieldOpen");
		}

		void HtmlView_OnLoadCompleted(object sender, NavigationEventArgs e)
		{
			if (!String.IsNullOrEmpty(MessageText))
				Document.parentWindow.execScript(
					String.Format("setContent({0})", MessageText.JsEncode()), "javascript");
		}

		void FromAccount_SelectionChanged(object sender, SelectionChangedEventArgs e)
		{
			if (FromAccount.SelectedItem == null)
				return;

			ToRecipients.TargetChannel = (ChannelInstance)FromAccount.SelectedItem;
			CcRecipients.TargetChannel = (ChannelInstance)FromAccount.SelectedItem;
			BccRecipients.TargetChannel = (ChannelInstance)FromAccount.SelectedItem;
		}

		#region Attachments

		void AddAttachment_Click(object sender, RoutedEventArgs e)
		{
			ClientStats.LogEvent("Attach document to new message");

			var dialog = new OpenFileDialog();

			dialog.Multiselect = true;

			var result = dialog.ShowDialog();

			if (result == true)
			{
				AttachFiles(dialog.FileNames);
			}
		}

		void ShowCCBCC_Click(object sender, RoutedEventArgs e)
		{
			ClientStats.LogEvent("Show CC/BCC field in new message");

			IsCCBCCFieldOpen = true;

			OnPropertyChanged("IsCCBCCFieldOpen");
		}

		void HideCCBCC_Click(object sender, RoutedEventArgs e)
		{
			ClientStats.LogEvent("Hide CC/BCC field in new message");

			IsCCBCCFieldOpen = false;

			OnPropertyChanged("IsCCBCCFieldOpen");
		}

		void FileDragOver(object sender, DragEventArgs e)
		{
			e.Effects = DragDropEffects.None;

			string[] fileNames = e.Data.GetData(DataFormats.FileDrop, true) as string[];

			if (fileNames != null && fileNames.Length > 0)
				e.Effects = DragDropEffects.Copy;

			e.Handled = true;
		}

		void FileDrop(object sender, DragEventArgs e)
		{
			ClientStats.LogEvent("Attach document to new message (drop)");

			string[] fileNames = e.Data.GetData(DataFormats.FileDrop, true) as string[];

			AttachFiles(fileNames);

			e.Handled = true;
		}

		void AttachFiles(string[] fileNames)
		{
			if (fileNames != null && fileNames.Length > 0)
			{
				foreach (var filename in fileNames)
				{
					FileInfo fi = new FileInfo(filename);

					if (fi.Exists)
						attachedFiles.Add(new AttachmentDataHelper(fi.Name, fi.FullName));
				}
			}
		}

		void Attachments_PreviewKeyUp(object sender, KeyEventArgs e)
		{
			if (e.Key == Key.Delete)
			{
				ClientStats.LogEvent("Delete attachment from new message");

				var attachment = (AttachmentDataHelper) AttachmentsListView.SelectedItem;

				AttachedFiles.Remove(attachment);

				if (IsDraft && attachment.DocumentId.HasValue)
				{
					// Also remove version that is attached to our draft message
					var document = SourceMessage.Documents.FirstOrDefault(d => d.DocumentId == attachment.DocumentId);

					if (document != null)
						document.DeleteFrom(SourceMessage);
				}

				e.Handled = true;
			}
		}

		#endregion

		#endregion
	}
}


text:
// Copyright 2014 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//    http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.devtools.build.lib.events;

import static java.nio.charset.StandardCharsets.ISO_8859_1;

import com.google.devtools.build.lib.util.Preconditions;

import java.io.OutputStream;

/**
 * An OutputStream that delegates all writes to a Reporter.
 */
public final class ReporterStream extends OutputStream {
  private final EventHandler reporter;
  private final EventKind eventKind;

  public ReporterStream(EventHandler reporter, EventKind eventKind) {
    this.reporter = Preconditions.checkNotNull(reporter);
    this.eventKind = Preconditions.checkNotNull(eventKind);
  }

  @Override
  public void close() {
    // NOP.
  }

  @Override
  public void flush() {
    // NOP.
  }

  @Override
  public void write(int b) {
    reporter.handle(Event.of(eventKind, null, new byte[] { (byte) b }));
  }

  @Override
  public void write(byte[] bytes) {
    reporter.handle(Event.of(eventKind, null, bytes));
  }

  @Override
  public void write(byte[] bytes, int offset, int len) {
    reporter.handle(Event.of(eventKind, null, new String(bytes, offset, len, ISO_8859_1)));
  }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.oregonscientific.meep.notification"
	android:sharedUserId="android.uid.system"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    <uses-sdk
        android:minSdkVersion="15"
        android:targetSdkVersion="17" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/notifications"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
        android:name="com.oregonscientific.meep.notification.NotificationCenterApplication" >

        <activity
            android:name="com.oregonscientific.meep.notification.NotificationCenterActivity"
            android:label="@string/app_name"
            android:screenOrientation="landscape" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name="com.oregonscientific.meep.notification.NotificationActivity"
            android:screenOrientation="landscape" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
            </intent-filter>
        </activity>
        <activity
            android:name="com.oregonscientific.meep.notification.NewsActivity"
            android:screenOrientation="landscape" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
            </intent-filter>
        </activity>

        <service
            android:name="com.oregonscientific.meep.notification.internal.NewsService"
            android:enabled="true">
        </service>

    </application>

</manifest>


text:
<!DOCTYPE html>

        <meta charset="utf-8">

        <title>ProUI - Responsive Bootstrap Admin Template</title>

        <meta name="description" content="ProUI is a Responsive Bootstrap Admin Template created by pixelcave and published on Themeforest.">
        <meta name="author" content="pixelcave">
        <meta name="robots" content="noindex, nofollow">

        <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0">

        <link rel="shortcut icon" href="img/favicon.ico">
        <link rel="apple-touch-icon" href="img/icon57.png" sizes="57x57">
        <link rel="apple-touch-icon" href="img/icon72.png" sizes="72x72">
        <link rel="apple-touch-icon" href="img/icon76.png" sizes="76x76">
        <link rel="apple-touch-icon" href="img/icon114.png" sizes="114x114">
        <link rel="apple-touch-icon" href="img/icon120.png" sizes="120x120">
        <link rel="apple-touch-icon" href="img/icon144.png" sizes="144x144">
        <link rel="apple-touch-icon" href="img/icon152.png" sizes="152x152">

        <link rel="stylesheet" href="css/bootstrap.min.css">

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

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

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

ProUI

Loading..

                             ChatUI

                                John Doe
                                <button id="chat-talk-close-btn" class="btn btn-xs btn-default pull-right">

                                </button>

Yesterday, 18:35

Hey admin?

How are you?

Today, 7:10

I'm fine, thanks!

                            <form action="index.html" method="post" id="sidebar-chat-form" class="chat-form">
                                <input type="text" id="sidebar-chat-message" name="sidebar-chat-message" class="form-control form-control-borderless" placeholder="Type a message..">
                            </form>

                             ActivityUI

                                just now

                                 Upgraded to Pro plan

                                2 hours ago

                                 You had a new sale!

                                3 hours ago

                                 John Doe would like to become friends!

                                 Accept
                                 Ignore

                                2 days ago

                                Running low on space
18GB in use 2GB left

                                 Upgrade Plan

                             MessagesUI (5)

                                Debra Stanleyjust now

                                New Follower

                                Sarah Cole2 min ago

                                Your subscription was updated

                                Bryan Porter10 min ago

                                A great opportunity

                                Jose Duncan30 min ago

                                Account Activation

                                Henry Ellis40 min ago

                                You reached 10.000 Followers!

                            ProUI

John Doe

                                Dashboard

                                Widget Kit

                                Statistics

                                Social

                                Media

                                Links

                                Design Kit

                                User Interface

                                        Grid & Blocks

                                        Draggable Blocks

                                        Typography

                                        Buttons & Dropdowns

                                        Navigation & More

                                        Horizontal Menu

                                        Progress & Loading

                                        Page Preloader

                                        Color Themes

                                Forms

                                        General

                                        Components

                                        Validation

                                        Wizard

                                Tables

                                        General

                                        Responsive

                                        Datatables

                                Icon Sets

                                        Font Awesome

                                        Glyphicons Pro

                                Page Layouts

                                        Static

                                        Static + Fixed Footer

                                        Fixed Top Header

                                        Fixed Top Header + Footer

                                        Fixed Bottom Header

                                        Fixed Bottom Header + Footer

                                        Partial Main Sidebar

                                        Visible Main Sidebar

                                        Partial Alternative Sidebar

                                        Visible Alternative Sidebar

                                        No Sidebars

                                        Both Sidebars Partial

                                        Animated Sidebar Transitions

                                Develop Kit

                                Components

                                        3 Level Menu

                                                Link 1

                                                Link 2

                                        Maps

                                        Charts

                                        Gallery

                                        Carousel

                                        Calendar

                                        CSS3 Animations

                                        Syntax Highlighting

                                Ready Pages

                                        Errors

                                                400

                                                401

                                                403

                                                404

                                                500

                                                503

                                        Get Started

                                                Blank

                                                Blank Alternative

                                        Search Results (4)

                                        Article

                                        User Profile

                                        Contacts

                                        e-Learning

                                                Courses

                                                Course - Lessons

                                                Course - Lesson Page

                                        Message Center

                                                Inbox

                                                Compose Message

                                                View Message

                                        Chat

                                        Timeline

                                        Tickets

                                        Tasks

                                        FAQ

                                        Pricing Tables

                                        Invoice

                                        Forum (3)

                                        Login, Register & Lock

                                                Login

                                                Login (Full Background)

                                                Login 2

                                                Password Reminder

                                                Password Reminder 2

                                                Register

                                                Register 2

                                                Lock Screen

                                                Lock Screen 2

                            Activity

                                5 min ago

                                 You had a new sale ($10)

                                10 min ago

                                 Upgraded to Pro plan

                                3 hours ago

                                 Running low on space
18GB in use 2GB left

                                Yesterday

                                 New bug submitted

Header Style

                                        Light
                                        Dark

Page Style

                                        Default
                                        Alternative

Main Layout

                                    <button class="btn btn-sm btn-block btn-primary" id="options-header-top">Fixed Side/Header (Top)</button>
                                    <button class="btn btn-sm btn-block btn-primary" id="options-header-bottom">Fixed Side/Header (Bottom)</button>

Footer

                                        Default
                                        Fixed

                    <form action="page_ready_search_results.html" method="post" class="navbar-form-custom" role="search">

                            <input type="text" id="top-search" name="top-search" class="form-control" placeholder="Search..">

                    </form>

                                4

Account

                                        10
                                        Updates

                                        5
                                        Messages

                                        3
                                        Subscriptions

                                        11
                                        FAQ

                                        Profile

                                        Settings

                                     Lock Account
                                     Logout

Activity

                                        5 min ago

                                         You had a new sale ($10)

                                        10 min ago

                                         Upgraded to Pro plan

                                        3 hours ago

                                         Running low on space
18GB in use 2GB left

                                        Yesterday

                                         New bug submitted

                                Search Results
UI for Projects, Images, Users and Classic search results!

Pages

Search Results

Projects

Images

Users

Classic

1

2

10 Results

                                             PROJECT
                                            TICKETS
                                            SALES
                                            EARNINGS

Freelancer Web Application

                                                     Paul Porter
                                                    PHP

Integer fermentum tincidunt auctor. Maecenas ultrices, justo vel imperdiet gravida, urna ligula hendrerit nibh, ac cursus nibh sapien in purus. Mauris tincidunt tincidunt turpis in porta. Integer fermentum tincidunt auctor.

45

3.265

$ 51.350

Premium Admin Template

                                                     Joe Phillips
                                                    HTML

Integer fermentum tincidunt auctor. Maecenas ultrices, justo vel imperdiet gravida, urna ligula hendrerit nibh, ac cursus nibh sapien in purus. Mauris tincidunt tincidunt turpis in porta. Integer fermentum tincidunt auctor.

69

1.529

$ 25.920

Responsive Wordpress Theme

                                                     Jesse Fox
                                                     WP

Integer fermentum tincidunt auctor. Maecenas ultrices, justo vel imperdiet gravida, urna ligula hendrerit nibh, ac cursus nibh sapien in purus. Mauris tincidunt tincidunt turpis in porta. Integer fermentum tincidunt auctor.

256

5.136

$ 62.158

Video Game

                                                     Gary Parker
                                                     Mobile

Integer fermentum tincidunt auctor. Maecenas ultrices, justo vel imperdiet gravida, urna ligula hendrerit nibh, ac cursus nibh sapien in purus. Mauris tincidunt tincidunt turpis in porta. Integer fermentum tincidunt auctor.

358

15.326

$ 22.000

Web Design App

                                                     Willie Burke
                                                     PC

Integer fermentum tincidunt auctor. Maecenas ultrices, justo vel imperdiet gravida, urna ligula hendrerit nibh, ac cursus nibh sapien in purus. Mauris tincidunt tincidunt turpis in porta. Integer fermentum tincidunt auctor.

560

20.698

$ 98.512

1

2

1

2

28 Results

                                                    View

                                                    View

                                                    View

                                                    View

                                                    View

                                                    View

                                                    View

                                                    View

                                                    View

                                                    View

                                                    View

                                                    View

                                                    View

                                                    View

1

2

1

2

3

30 Results

                                                Username
                                                Email
                                                Subscription
                                                Actions

                                                user1
                                                user1@example.com
                                                Trial

                                                user2
                                                user2@example.com
                                                VIP

                                                user3
                                                user3@example.com
                                                Business

                                                user4
                                                user4@example.com
                                                VIP

                                                user5
                                                user5@example.com
                                                Personal

                                                user6
                                                user6@example.com
                                                Business

                                                user7
                                                user7@example.com
                                                Trial

                                                user8
                                                user8@example.com
                                                Personal

                                                user9
                                                user9@example.com
                                                VIP

                                                user10
                                                user10@example.com
                                                Business

1

2

3

1

2

3

30 Results

 Responsive & Premium Admin Template

                                                 •
                                                http://example.com/ •
                                                68
                                                360

Donec lacinia venenatis metus at bibendum. In hac habitasse platea dictumst. Proin ac nibh rutrum lectus rhoncus eleifend. Sed porttitor pretium venenatis. Suspendisse potenti. Aliquam quis ligula elit. Aliquam at orci ac neque semper dictum. Sed tincidunt scelerisque ligula, et facilisis nulla hendrerit non. Suspendisse potenti. Pellentesque non accumsan orci. Praesent at lacinia dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec lacinia venenatis metus at bibendum? In hac habitasse platea dictumst. Proin ac nibh rutrum lectus rhoncus eleifend. Sed porttitor pretium venenatis. Suspendisse potenti. Aliquam quis ligula elit. Aliquam at orci ac neque semper dictum. Sed tincidunt scelerisque ligula, et facilisis nulla hendrerit non. Suspendisse potenti. Pellentesque non accumsan orci. Praesent at lacinia dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

 Responsive & Premium Admin Template

                                                 •
                                                http://example.com/ •
                                                96
                                                214

Donec lacinia venenatis metus at bibendum. In hac habitasse platea dictumst. Proin ac nibh rutrum lectus rhoncus eleifend. Sed porttitor pretium venenatis. Suspendisse potenti. Aliquam quis ligula elit. Aliquam at orci ac neque semper dictum. Sed tincidunt scelerisque ligula, et facilisis nulla hendrerit non. Suspendisse potenti. Pellentesque non accumsan orci. Praesent at lacinia dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec lacinia venenatis metus at bibendum? In hac habitasse platea dictumst. Proin ac nibh rutrum lectus rhoncus eleifend. Sed porttitor pretium venenatis. Suspendisse potenti. Aliquam quis ligula elit. Aliquam at orci ac neque semper dictum. Sed tincidunt scelerisque ligula, et facilisis nulla hendrerit non. Suspendisse potenti. Pellentesque non accumsan orci. Praesent at lacinia dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

 Responsive & Premium Admin Template

                                                 •
                                                http://example.com/ •
                                                10
                                                69

Donec lacinia venenatis metus at bibendum. In hac habitasse platea dictumst. Proin ac nibh rutrum lectus rhoncus eleifend. Sed porttitor pretium venenatis. Suspendisse potenti. Aliquam quis ligula elit. Aliquam at orci ac neque semper dictum. Sed tincidunt scelerisque ligula, et facilisis nulla hendrerit non. Suspendisse potenti. Pellentesque non accumsan orci. Praesent at lacinia dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec lacinia venenatis metus at bibendum? In hac habitasse platea dictumst. Proin ac nibh rutrum lectus rhoncus eleifend. Sed porttitor pretium venenatis. Suspendisse potenti. Aliquam quis ligula elit. Aliquam at orci ac neque semper dictum. Sed tincidunt scelerisque ligula, et facilisis nulla hendrerit non. Suspendisse potenti. Pellentesque non accumsan orci. Praesent at lacinia dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

 Responsive & Premium Admin Template

                                                 •
                                                http://example.com/ •
                                                52
                                                10

Donec lacinia venenatis metus at bibendum. In hac habitasse platea dictumst. Proin ac nibh rutrum lectus rhoncus eleifend. Sed porttitor pretium venenatis. Suspendisse potenti. Aliquam quis ligula elit. Aliquam at orci ac neque semper dictum. Sed tincidunt scelerisque ligula, et facilisis nulla hendrerit non. Suspendisse potenti. Pellentesque non accumsan orci. Praesent at lacinia dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec lacinia venenatis metus at bibendum? In hac habitasse platea dictumst. Proin ac nibh rutrum lectus rhoncus eleifend. Sed porttitor pretium venenatis. Suspendisse potenti. Aliquam quis ligula elit. Aliquam at orci ac neque semper dictum. Sed tincidunt scelerisque ligula, et facilisis nulla hendrerit non. Suspendisse potenti. Pellentesque non accumsan orci. Praesent at lacinia dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

 Responsive & Premium Admin Template

                                                 •
                                                http://example.com/ •
                                                12
                                                52

Donec lacinia venenatis metus at bibendum. In hac habitasse platea dictumst. Proin ac nibh rutrum lectus rhoncus eleifend. Sed porttitor pretium venenatis. Suspendisse potenti. Aliquam quis ligula elit. Aliquam at orci ac neque semper dictum. Sed tincidunt scelerisque ligula, et facilisis nulla hendrerit non. Suspendisse potenti. Pellentesque non accumsan orci. Praesent at lacinia dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec lacinia venenatis metus at bibendum? In hac habitasse platea dictumst. Proin ac nibh rutrum lectus rhoncus eleifend. Sed porttitor pretium venenatis. Suspendisse potenti. Aliquam quis ligula elit. Aliquam at orci ac neque semper dictum. Sed tincidunt scelerisque ligula, et facilisis nulla hendrerit non. Suspendisse potenti. Pellentesque non accumsan orci. Praesent at lacinia dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

 Responsive & Premium Admin Template

                                                 •
                                                http://example.com/ •
                                                13
                                                1

Donec lacinia venenatis metus at bibendum. In hac habitasse platea dictumst. Proin ac nibh rutrum lectus rhoncus eleifend. Sed porttitor pretium venenatis. Suspendisse potenti. Aliquam quis ligula elit. Aliquam at orci ac neque semper dictum. Sed tincidunt scelerisque ligula, et facilisis nulla hendrerit non. Suspendisse potenti. Pellentesque non accumsan orci. Praesent at lacinia dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec lacinia venenatis metus at bibendum? In hac habitasse platea dictumst. Proin ac nibh rutrum lectus rhoncus eleifend. Sed porttitor pretium venenatis. Suspendisse potenti. Aliquam quis ligula elit. Aliquam at orci ac neque semper dictum. Sed tincidunt scelerisque ligula, et facilisis nulla hendrerit non. Suspendisse potenti. Pellentesque non accumsan orci. Praesent at lacinia dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

 Responsive & Premium Admin Template

                                                 •
                                                http://example.com/ •
                                                90
                                                72

Donec lacinia venenatis metus at bibendum. In hac habitasse platea dictumst. Proin ac nibh rutrum lectus rhoncus eleifend. Sed porttitor pretium venenatis. Suspendisse potenti. Aliquam quis ligula elit. Aliquam at orci ac neque semper dictum. Sed tincidunt scelerisque ligula, et facilisis nulla hendrerit non. Suspendisse potenti. Pellentesque non accumsan orci. Praesent at lacinia dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec lacinia venenatis metus at bibendum? In hac habitasse platea dictumst. Proin ac nibh rutrum lectus rhoncus eleifend. Sed porttitor pretium venenatis. Suspendisse potenti. Aliquam quis ligula elit. Aliquam at orci ac neque semper dictum. Sed tincidunt scelerisque ligula, et facilisis nulla hendrerit non. Suspendisse potenti. Pellentesque non accumsan orci. Praesent at lacinia dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

 Responsive & Premium Admin Template

                                                 •
                                                http://example.com/ •
                                                90
                                                72

Donec lacinia venenatis metus at bibendum. In hac habitasse platea dictumst. Proin ac nibh rutrum lectus rhoncus eleifend. Sed porttitor pretium venenatis. Suspendisse potenti. Aliquam quis ligula elit. Aliquam at orci ac neque semper dictum. Sed tincidunt scelerisque ligula, et facilisis nulla hendrerit non. Suspendisse potenti. Pellentesque non accumsan orci. Praesent at lacinia dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec lacinia venenatis metus at bibendum? In hac habitasse platea dictumst. Proin ac nibh rutrum lectus rhoncus eleifend. Sed porttitor pretium venenatis. Suspendisse potenti. Aliquam quis ligula elit. Aliquam at orci ac neque semper dictum. Sed tincidunt scelerisque ligula, et facilisis nulla hendrerit non. Suspendisse potenti. Pellentesque non accumsan orci. Praesent at lacinia dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

 Responsive & Premium Admin Template

                                                 •
                                                http://example.com/ •
                                                2
                                                12

Donec lacinia venenatis metus at bibendum. In hac habitasse platea dictumst. Proin ac nibh rutrum lectus rhoncus eleifend. Sed porttitor pretium venenatis. Suspendisse potenti. Aliquam quis ligula elit. Aliquam at orci ac neque semper dictum. Sed tincidunt scelerisque ligula, et facilisis nulla hendrerit non. Suspendisse potenti. Pellentesque non accumsan orci. Praesent at lacinia dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec lacinia venenatis metus at bibendum? In hac habitasse platea dictumst. Proin ac nibh rutrum lectus rhoncus eleifend. Sed porttitor pretium venenatis. Suspendisse potenti. Aliquam quis ligula elit. Aliquam at orci ac neque semper dictum. Sed tincidunt scelerisque ligula, et facilisis nulla hendrerit non. Suspendisse potenti. Pellentesque non accumsan orci. Praesent at lacinia dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

 Responsive & Premium Admin Template

                                                 •
                                                http://example.com/ •
                                                8
                                                63

Donec lacinia venenatis metus at bibendum. In hac habitasse platea dictumst. Proin ac nibh rutrum lectus rhoncus eleifend. Sed porttitor pretium venenatis. Suspendisse potenti. Aliquam quis ligula elit. Aliquam at orci ac neque semper dictum. Sed tincidunt scelerisque ligula, et facilisis nulla hendrerit non. Suspendisse potenti. Pellentesque non accumsan orci. Praesent at lacinia dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec lacinia venenatis metus at bibendum? In hac habitasse platea dictumst. Proin ac nibh rutrum lectus rhoncus eleifend. Sed porttitor pretium venenatis. Suspendisse potenti. Aliquam quis ligula elit. Aliquam at orci ac neque semper dictum. Sed tincidunt scelerisque ligula, et facilisis nulla hendrerit non. Suspendisse potenti. Pellentesque non accumsan orci. Praesent at lacinia dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

1

2

3

                        Crafted with  by pixelcave

                         © ProUI 2.1

 Settings

                        <form action="index.html" method="post" enctype="multipart/form-data" class="form-horizontal form-bordered" onsubmit="return false;">
                            <fieldset>
                                <legend>Vital Info</legend>

                                    Username

Admin

                                    Email

                                        <input type="email" id="user-settings-email" name="user-settings-email" class="form-control" value="admin@example.com">

                                    Email Notifications

                                            <input type="checkbox" id="user-settings-notifications" name="user-settings-notifications" value="1" checked>

                            </fieldset>
                            <fieldset>
                                <legend>Password Update</legend>

                                    New Password

                                        <input type="password" id="user-settings-password" name="user-settings-password" class="form-control" placeholder="Please choose a complex one..">

                                    Confirm New Password

                                        <input type="password" id="user-settings-repassword" name="user-settings-repassword" class="form-control" placeholder="..and confirm it!">

                            </fieldset>

                                    <button type="button" class="btn btn-sm btn-default" data-dismiss="modal">Close</button>
                                    <button type="submit" class="btn btn-sm btn-primary">Save Changes</button>

                        </form>


text:
* [
      jindulys
      /
      HackerRankSolutions
](https://github.com/jindulys/HackerRankSolutions):
      This is a repo for HackerRankSolutions with Swift

* [
      Aufree
      /
      ESTMusicIndicator
](https://github.com/Aufree/ESTMusicIndicator):
      Cool Animated music indicator view written in Swift

* [
      Wl201314
      /
      MJianshu
](https://github.com/Wl201314/MJianshu):
      Swift高仿简书,已经实现了部分的功能,其他功能会逐渐进行实现,欢迎Star

* [
      ReactiveX
      /
      RxSwift
](https://github.com/ReactiveX/RxSwift):
      Reactive Programming in Swift

* [
      hsavit1
      /
      Awesome-Swift-Education
](https://github.com/hsavit1/Awesome-Swift-Education):

 All of the resources for Learning About Swift

* [
      PerfectlySoft
      /
      Perfect
](https://github.com/PerfectlySoft/Perfect):
      Server-side Swift. The Perfect library, application server, connectors and example apps. (For mobile back-end development, website and web app development, and more...)

* [
      FlexMonkey
      /
      Filterpedia
](https://github.com/FlexMonkey/Filterpedia):
      Core Image Filter explorer

* [
      VerbalExpressions
      /
      SwiftVerbalExpressions
](https://github.com/VerbalExpressions/SwiftVerbalExpressions):
      Swift Port of VerbalExpressions

* [
      Alamofire
      /
      Alamofire
](https://github.com/Alamofire/Alamofire):
      Elegant HTTP Networking in Swift

* [
      lexrus
      /
      blog.swift
](https://github.com/lexrus/blog.swift):
      [WIP] My first tiny server-side Swift blog app.

* [
      matteocrippa
      /
      awesome-swift
](https://github.com/matteocrippa/awesome-swift):
      A collaborative list of awesome swift resources. Feel free to contribute!

* [
      hyperoslo
      /
      Whisper
](https://github.com/hyperoslo/Whisper):
      A fairy eyelash or a unicorn whisper too far.

* [
      osteslag
      /
      Changeset
](https://github.com/osteslag/Changeset):
      Minimal edits from one collection to another

* [
      krzysztofzablocki
      /
      KZLinkedConsole
](https://github.com/krzysztofzablocki/KZLinkedConsole):
      Clickable links in your Xcode console, so you never wonder which class logged the message.

* [
      Swift-Flow
      /
      Swift-Flow
](https://github.com/Swift-Flow/Swift-Flow):
      Unidirectional Data Flow in Swift

* [
      SwiftyJSON
      /
      SwiftyJSON
](https://github.com/SwiftyJSON/SwiftyJSON):
      The better way to deal with JSON data in Swift

* [
      DaveWoodCom
      /
      XCGLogger
](https://github.com/DaveWoodCom/XCGLogger):
      A debug log framework for use in Swift projects. Allows you to log details to the console (and optionally a file), just like you would have with NSLog or println, but with additional information, such as the date, function name, filename and line number.

* [
      ipader
      /
      SwiftGuide
](https://github.com/ipader/SwiftGuide):
      这份指南汇集了Swift语言主流学习资源,并以开发者的视角整理编排。

* [
      wangshengjia
      /
      VWInstantRun
](https://github.com/wangshengjia/VWInstantRun):
      An Xcode plugin let you build & run your selected lines of code in Xcode without running the whole project, you'll have the output instantly in your Xcode console.

* [
      danielgindi
      /
      ios-charts
](https://github.com/danielgindi/ios-charts):
      An iOS port of the beautiful MPAndroidChart. - Beautiful charts for iOS apps!

* [
      RuiAAPeres
      /
      OptionalExtensions
](https://github.com/RuiAAPeres/OptionalExtensions):
      Swift µframework with extensions for the Optional Type

* [
      phimage
      /
      CallbackURLKit
](https://github.com/phimage/CallbackURLKit):
      Implementation of x-callback-url (Inter app communication) in swift

* [
      devxoul
      /
      Then
](https://github.com/devxoul/Then):

✨ Super sweet syntactic sugar for Swift initializers.

* [
      apple
      /
      swift-package-manager
](https://github.com/apple/swift-package-manager):
      The Package Manager for the Swift Programming Language

* [
      realm
      /
      realm-cocoa
](https://github.com/realm/realm-cocoa):
      Realm is a mobile database: a replacement for Core Data & SQLite

####objective-c
* [
      matryer
      /
      bitbar
](https://github.com/matryer/bitbar):
      Put the output from any script or program in your Mac OS X Menu Bar

* [
      MoZhouqi
      /
      KMNavigationBarTransition
](https://github.com/MoZhouqi/KMNavigationBarTransition):
      A drop-in universal library makes transition animations smooth between different navigation bar styles while pushing or popping a view controller. And you don't need to write any line of code for it, it all happens automatically.

* [
      AFNetworking
      /
      AFNetworking
](https://github.com/AFNetworking/AFNetworking):
      A delightful networking framework for iOS, OS X, watchOS, and tvOS.

* [
      dkhamsing
      /
      open-source-ios-apps
](https://github.com/dkhamsing/open-source-ios-apps):

 Collaborative List of Open-Source iOS Apps

* [
      shu223
      /
      AnimatedTransitionGallery
](https://github.com/shu223/AnimatedTransitionGallery):
      A gallery app of custom animated transitions for iOS.

* [
      ReactiveCocoa
      /
      ReactiveCocoa
](https://github.com/ReactiveCocoa/ReactiveCocoa):
      Streams of values over time

* [
      ibireme
      /
      YYKit
](https://github.com/ibireme/YYKit):
      A collection of iOS components.

* [
      dsxNiubility
      /
      Wonderful
](https://github.com/dsxNiubility/Wonderful):
      Include wonderfulcolor api, marquee, colorLabel, Gradient, Separate ...

* [
      postmates
      /
      PMKVObserver
](https://github.com/postmates/PMKVObserver):
      A type-safe Swift/ObjC KVO wrapper

* [
      ibireme
      /
      YYText
](https://github.com/ibireme/YYText):
      Powerful text framework for iOS to display and edit rich text.

* [
      rs
      /
      SDWebImage
](https://github.com/rs/SDWebImage):
      Asynchronous image downloader with cache support as a UIImageView category

* [
      yuantiku
      /
      YTKNetwork
](https://github.com/yuantiku/YTKNetwork):
      YTKNetwork is a high level request util based on AFNetworking.

* [
      gsdios
      /
      SDAutoLayout
](https://github.com/gsdios/SDAutoLayout):
      AutoLayout 一行代码搞定自动布局!支持Cell和Tableview高度自适应,Label和ScrollView内容自适应,致力于做最简单易用的AutoLayout库。The most easy way for autoLayout. Based Runtime.

* [
      forkingdog
      /
      UITableView-FDTemplateLayoutCell
](https://github.com/forkingdog/UITableView-FDTemplateLayoutCell):
      Template auto layout cell for automatically UITableViewCell height calculating

* [
      anthonya1999
      /
      GoodNight
](https://github.com/anthonya1999/GoodNight):
      The first non-jailbroken application to adjust the screen temperature, brightness, and color!

* [
      wwayne
      /
      react-native-nba-app
](https://github.com/wwayne/react-native-nba-app):
      This is why we play

* [
      facebook
      /
      AsyncDisplayKit
](https://github.com/facebook/AsyncDisplayKit):
      Smooth asynchronous user interfaces for iOS apps.

* [
      chatwyn
      /
      WBZhiHuDailyPaper
](https://github.com/chatwyn/WBZhiHuDailyPaper):
       高仿知乎日报,支持3DTouch

* [
      hackiftekhar
      /
      IQKeyboardManager
](https://github.com/hackiftekhar/IQKeyboardManager):
      Codeless drop-in universal library allows to prevent issues of keyboard sliding up and cover UITextField/UITextView. Neither need to write any code nor any setup required and much more.

* [
      olegam
      /
      Postboks
](https://github.com/olegam/Postboks):
* [
      SnapKit
      /
      Masonry
](https://github.com/SnapKit/Masonry):
      Harness the power of AutoLayout NSLayoutConstraints with a simplified, chainable and expressive syntax. Supports iOS and OSX Auto Layout

* [
      tonsky
      /
      AnyBar
](https://github.com/tonsky/AnyBar):
      OS X menubar status indicator

* [
      BradLarson
      /
      GPUImage
](https://github.com/BradLarson/GPUImage):
      An open source iOS framework for GPU-based image and video processing

* [
      marcuswestin
      /
      WebViewJavascriptBridge
](https://github.com/marcuswestin/WebViewJavascriptBridge):
      An iOS/OSX bridge for sending messages between Obj-C and JavaScript in UIWebViews/WebViews

* [
      gsdios
      /
      SDCycleScrollView
](https://github.com/gsdios/SDCycleScrollView):
      无限循环图片轮播器。Autoscroll Banner。

####go
* [
      rach
      /
      pome
](https://github.com/rach/pome):
      A Postgres Metrics Dashboard which can be deployed as a binary

* [
      rfjakob
      /
      gocryptfs
](https://github.com/rfjakob/gocryptfs):
      Encrypted overlay filesystem written in Go.

* [
      getlantern
      /
      lantern
](https://github.com/getlantern/lantern):

 Open Internet for everyone. Lantern is a free desktop application that delivers fast, reliable and secure access to the open Internet for users in censored regions. It uses a variety of techniques to stay unblocked, including P2P and domain fronting. Lantern relies on users in uncensored regions acting as access points to the open Internet.

* [
      raphael
      /
      goa
](https://github.com/raphael/goa):
      Design-based HTTP microservices in Go

* [
      lukasmartinelli
      /
      pipecat
](https://github.com/lukasmartinelli/pipecat):
      Connect UNIX pipes and message queues

* [
      micro
      /
      micro
](https://github.com/micro/micro):
      A microservice toolkit

* [
      acgshare
      /
      acgsh
](https://github.com/acgshare/acgsh):
* [
      kubernetes
      /
      kubernetes
](https://github.com/kubernetes/kubernetes):
      Container Cluster Manager from Google

* [
      gogits
      /
      gogs
](https://github.com/gogits/gogs):
      Gogs (Go Git Service) is a painless self-hosted Git service.

* [
      rlmcpherson
      /
      s3gof3r
](https://github.com/rlmcpherson/s3gof3r):
      Fast, concurrent, streaming access to Amazon S3, including gof3r, a CLI. http://godoc.org/github.com/rlmcpherson/s3gof3r

* [
      pubnative
      /
      mysqldriver-go
](https://github.com/pubnative/mysqldriver-go):
      GC optimized MySQL driver

* [
      docker
      /
      docker
](https://github.com/docker/docker):
      Docker - the open-source application container engine

* [
      wandoulabs
      /
      codis
](https://github.com/wandoulabs/codis):
      Proxy based Redis cluster solution supporting pipeline and scaling dynamically

* [
      spf13
      /
      hugo
](https://github.com/spf13/hugo):
      A Fast and Flexible Static Site Generator built with love by spf13 in GoLang

* [
      avelino
      /
      awesome-go
](https://github.com/avelino/awesome-go):
      A curated list of awesome Go frameworks, libraries and software

* [
      rakyll
      /
      gom
](https://github.com/rakyll/gom):
      A visual interface to work with runtime profiling data for Go

* [
      golang
      /
      go
](https://github.com/golang/go):
      The Go programming language

* [
      mholt
      /
      caddy
](https://github.com/mholt/caddy):
      Fast, cross-platform HTTP/2 web server with automatic HTTPS

* [
      josephspurrier
      /
      gowebapp
](https://github.com/josephspurrier/gowebapp):
      Basic MVC Web Application in Golang

* [
      SummitRoute
      /
      osxlockdown
](https://github.com/SummitRoute/osxlockdown):
      Apple OS X tool to audit for, and remediate, security configuration settings.

* [
      coreos
      /
      etcd
](https://github.com/coreos/etcd):
      Distributed reliable key-value store for the most critical data of a distributed system

* [
      astaxie
      /
      beego
](https://github.com/astaxie/beego):
      beego is an open-source, high-performance web framework for the Go programming language.

* [
      mission-liao
      /
      dingo
](https://github.com/mission-liao/dingo):
      An easy-to-use, distributed, extensible task/job queue framework for #golang

* [
      apex
      /
      apex
](https://github.com/apex/apex):
      Minimal AWS Lambda function manager with Go support.

* [
      junegunn
      /
      fzf
](https://github.com/junegunn/fzf):

 A command-line fuzzy finder written in Go

####javascript
* [
      keithwhor
      /
      nodal
](https://github.com/keithwhor/nodal):
      Web Servers Made Easy With Node.js

* [
      FreeCodeCamp
      /
      FreeCodeCamp
](https://github.com/FreeCodeCamp/FreeCodeCamp):
      The http://FreeCodeCamp.com open source codebase and curriculum. Learn to code and help nonprofits.

* [
      VerbalExpressions
      /
      JSVerbalExpressions
](https://github.com/VerbalExpressions/JSVerbalExpressions):
      JavaScript Regular expressions made easy

* [
      coryhouse
      /
      react-slingshot
](https://github.com/coryhouse/react-slingshot):
      React + Redux starter kit with Babel, hot reloading, testing, linting and a working example app, all built in

* [
      loverajoel
      /
      jstips
](https://github.com/loverajoel/jstips):
      This is about one JS tip every day!

* [
      hacksalot
      /
      HackMyResume
](https://github.com/hacksalot/HackMyResume):
      Generate polished résumés and CVs in HTML, Markdown, LaTeX, MS Word, PDF, plain text, JSON, XML, YAML, smoke signal, and carrier pigeon.

* [
      facebook
      /
      react-native
](https://github.com/facebook/react-native):
      A framework for building native apps with React.

* [
      facebook
      /
      react
](https://github.com/facebook/react):
      A declarative, efficient, and flexible JavaScript library for building user interfaces.

* [
      tj
      /
      frontend-boilerplate
](https://github.com/tj/frontend-boilerplate):
      webpack-react-redux-babel-autoprefixer-hmr-postcss-css-modules-rucksack-boilerplate

* [
      rackt
      /
      redux
](https://github.com/rackt/redux):
      Predictable state container for JavaScript apps

* [
      andersevenrud
      /
      OS.js-v2
](https://github.com/andersevenrud/OS.js-v2):
      JavaScript Cloud/Web Desktop Platform

* [
      angular
      /
      angular.js
](https://github.com/angular/angular.js):
      HTML enhanced for web apps

* [
      getify
      /
      You-Dont-Know-JS
](https://github.com/getify/You-Dont-Know-JS):
      A book series on JavaScript. @YDKJS on twitter.

* [
      vuejs
      /
      vue
](https://github.com/vuejs/vue):
      Simple yet powerful library for building modern web interfaces.

* [
      feross
      /
      standard
](https://github.com/feross/standard):

 JavaScript Standard Style

* [
      airbnb
      /
      javascript
](https://github.com/airbnb/javascript):
      JavaScript Style Guide

* [
      mbostock
      /
      d3
](https://github.com/mbostock/d3):
      A JavaScript visualization library for HTML and SVG.

* [
      YoruNoHikage
      /
      redux-devtools-dispatch
](https://github.com/YoruNoHikage/redux-devtools-dispatch):
      Dispatch your actions manually to test if your app reacts well.

* [
      rackt
      /
      react-router
](https://github.com/rackt/react-router):
      A complete routing solution for React.js

* [
      resume
      /
      resume.github.com
](https://github.com/resume/resume.github.com):
      Resumes generated using the GitHub informations

* [
      nodejs
      /
      node
](https://github.com/nodejs/node):
      Node.js JavaScript runtime

* [
      babel
      /
      babel
](https://github.com/babel/babel):
      Babel is a compiler for writing next generation JavaScript.

* [
      webpack
      /
      webpack
](https://github.com/webpack/webpack):
      A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows to load parts for the application on demand. Through "loaders" modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.

* [
      getguesstimate
      /
      guesstimate-app
](https://github.com/getguesstimate/guesstimate-app):
      Create Fermi Estimates and Perform Monte Carlo Estimates

* [
      callemall
      /
      material-ui
](https://github.com/callemall/material-ui):
      React Components that Implement Google's Material Design.

####ruby
* [
      Homebrew
      /
      homebrew
](https://github.com/Homebrew/homebrew):

 The missing package manager for OS X.

* [
      rails
      /
      rails
](https://github.com/rails/rails):
      Ruby on Rails

* [
      fastlane
      /
      fastlane
](https://github.com/fastlane/fastlane):
      Connect all iOS deployment tools into one streamlined workflow

* [
      ruby
      /
      ruby
](https://github.com/ruby/ruby):
      The Ruby Programming Language

* [
      jondot
      /
      awesome-react-native
](https://github.com/jondot/awesome-react-native):
      An "awesome" type curated list of React Native components, news, tools, and learning material

* [
      cantino
      /
      huginn
](https://github.com/cantino/huginn):
      Build agents that monitor and act on your behalf. Your agents are standing by!

* [
      caskroom
      /
      homebrew-cask
](https://github.com/caskroom/homebrew-cask):
      A CLI workflow for the administration of Mac applications distributed as binaries

* [
      peter-murach
      /
      tty-prompt
](https://github.com/peter-murach/tty-prompt):
      A beautiful and powerful interactive command line prompt

* [
      jekyll
      /
      jekyll
](https://github.com/jekyll/jekyll):

 Jekyll is a blog-aware, static site generator in Ruby

* [
      angrysql
      /
      hypertextual
](https://github.com/angrysql/hypertextual):
      blogging framework to fight chickenshit minimalism

* [
      mitchellh
      /
      vagrant
](https://github.com/mitchellh/vagrant):
      Vagrant is a tool for building and distributing development environments.

* [
      CalebFenton
      /
      dex-oracle
](https://github.com/CalebFenton/dex-oracle):
      A pattern based Dalvik deobfuscator which uses limited execution to improve semantic analysis

* [
      ruby-concurrency
      /
      concurrent-ruby
](https://github.com/ruby-concurrency/concurrent-ruby):
      Modern concurrency tools including agents, futures, promises, thread pools, supervisors, and more. Inspired by Erlang, Clojure, Scala, Go, Java, JavaScript, and classic concurrency patterns.

* [
      twbs
      /
      bootstrap-sass
](https://github.com/twbs/bootstrap-sass):
      Official Sass port of Bootstrap 2 and 3.

* [
      shakacode
      /
      react_on_rails
](https://github.com/shakacode/react_on_rails):
      Integration of React + Webpack + Rails to build Universal (Isomorphic) Apps

* [
      discourse
      /
      discourse
](https://github.com/discourse/discourse):
      A platform for community discussion. Free, open, simple.

* [
      bbatsov
      /
      rubocop
](https://github.com/bbatsov/rubocop):
      A Ruby static code analyzer, based on the community Ruby style guide.

* [
      elastic
      /
      logstash
](https://github.com/elastic/logstash):
      logstash - transport and process your logs, events, or other data

* [
      lowescott
      /
      learning-tools
](https://github.com/lowescott/learning-tools):
      A collection of tools and files for learning new technologies

* [
      plataformatec
      /
      devise
](https://github.com/plataformatec/devise):
      Flexible authentication solution for Rails with Warden.

* [
      CocoaPods
      /
      CocoaPods
](https://github.com/CocoaPods/CocoaPods):
      The Cocoa Dependency Manager.

* [
      gitlabhq
      /
      gitlabhq
](https://github.com/gitlabhq/gitlabhq):
      GitLab is version control for your server

* [
      brandonhilkert
      /
      sucker_punch
](https://github.com/brandonhilkert/sucker_punch):
      Sucker Punch is a Ruby asynchronous processing library using Celluloid, heavily influenced by Sidekiq and girl_friday.

* [
      mperham
      /
      sidekiq
](https://github.com/mperham/sidekiq):
      Simple, efficient background processing for Ruby

* [
      solidusio
      /
      solidus
](https://github.com/solidusio/solidus):
      Solidus, Rails eCommerce System