This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component, Fragment } from 'react'; | |
const connect = (Wrapped, store) => { | |
return class extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { store }; | |
} | |
dispatch(name, data) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=begin | |
Usage: ruby matching_configs <app1> <app2> | |
=end | |
require 'json' | |
first_app_name = ARGV[0] | |
second_app_name = ARGV[1] | |
puts "Finding matches for #{first_app_name} -> #{second_app_name}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:2.7 | |
ENV PYTHONUNBUFFERED 1 | |
RUN mkdir /code | |
WORKDIR /code | |
ADD requirements.txt /code/ | |
RUN pip install -r requirements.txt | |
ADD . /code/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8.4. Timing events | |
------------------ | |
Timers provide a great help in troubleshooting network problems. All values are | |
reported in milliseconds (ms). These timers should be used in conjunction with | |
the session termination flags. In TCP mode with "option tcplog" set on the | |
frontend, 3 control points are reported under the form "Tw/Tc/Tt", and in HTTP | |
mode, 5 control points are reported under the form "Tq/Tw/Tc/Tr/Tt" : | |
- Tq: total time to get the client request (HTTP mode only). It's the time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* If the user writes both DISTINCT ON and ORDER BY, adopt the sorting | |
* semantics from ORDER BY items that match DISTINCT ON items, and also | |
* adopt their column sort order. We insist that the distinctClause and | |
* sortClause match, so throw error if we find the need to add any more | |
* distinctClause items after we've skipped an ORDER BY item that wasn't | |
* in DISTINCT ON. | |
*/ | |
skipped_sortitem = false; | |
foreach(lc, sortClause) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original text here: http://www.heartmindcode.com/blog/2013/08/loyalty-and-layoffs/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package controllers | |
import akka.actor.Props | |
import akka.actor._ | |
import akka.actor | |
import akka.pattern._ | |
import akka.util._ | |
import akka.event._ | |
import scala.concurrent.Await | |
import scala.concurrent.Future |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Image | |
import os | |
import random | |
training_images = [] | |
training_path = 'cropped' | |
background_images = [] | |
background_path = 'background' | |
training_file = 'train' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mongoose = require('mongoose'); | |
var EventUser = new mongoose.Schema({ | |
user_name: String, | |
attending: Boolean | |
}); | |
var Comments = new mongoose.Schema({ | |
date: Date, | |
text: String, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h" | |
#include <string> | |
#include <iostream> | |
#include <map> | |
int romToNum(std::string rom); | |
bool ShouldSubtract(std::string rom, int position); | |
std::map<char, int> romNumMap; |
NewerOlder