This file contains 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
console.clear(); | |
const items$ = Rx.Observable | |
.interval(100) | |
.map(x => `item-${x}`) | |
.take(100) | |
.share(); | |
const cc$ = Rx.Observable | |
.interval(0) |
This file contains 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
console.clear(); | |
const items$ = Rx.Observable | |
.interval(100) | |
.map(x => `item-${x}`) | |
.take(100) | |
.share(); | |
const cc$ = Rx.Observable | |
.interval(0) |
This file contains 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
<?php | |
namespace AppBundle\Utils; | |
use ReflectionClass; | |
trait DoctrineTrait | |
{ | |
/** | |
* Deduces the entity's name from the controller name |
This file contains 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
<?php | |
namespace Acme\FooBundle\Hateoas; | |
use Doctrine\ORM\EntityManager; | |
use Hateoas\Configuration\Metadata\ClassMetadataInterface; | |
use Hateoas\Configuration as Hateoas; | |
use Symfony\Component\Routing\Route; | |
use Symfony\Component\Routing\RouterInterface; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while read line; do | |
if ! echo $line | grep '+----' &> /dev/null ; then | |
echo $line | sed -E 's/\s+/ /g' | awk -F '\\s*\\|\\s*' '{ print $0 }' | tr '|' "\n" | |
fi | |
done |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" | |
version="3.1"> | |
<servlet> | |
<servlet-name>AuthServlet</servlet-name> | |
<servlet-class>AuthServlet</servlet-class> | |
</servlet> |
This file contains 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 <iostream> | |
#include <vector> | |
#include <algorithm> | |
#include <ctime> | |
#include <cstdlib> | |
#include <iterator> | |
#include <functional> | |
#include <vector> | |
#include <list> |
This file contains 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 <cstdlib> | |
#include <cstring> | |
#include <iostream> | |
#include <boost/asio.hpp> | |
using boost::asio::ip::udp; | |
enum { max_length = 1024 }; | |
int main(int argc, char* argv[]) |
This file contains 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 <cstdlib> | |
#include <iostream> | |
#include <boost/asio.hpp> | |
#include <functional> | |
using boost::asio::ip::udp; | |
class server | |
{ | |
public: |
This file contains 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 <iostream> | |
#include <boost/array.hpp> | |
#include <boost/asio.hpp> | |
using boost::asio::ip::tcp; | |
namespace as = boost::asio; | |
int main(int argc, char* argv[]) | |
{ |