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 <bits/stdc++.h> | |
using namespace std; | |
#include <ext/pb_ds/assoc_container.hpp> | |
#include <ext/pb_ds/tree_policy.hpp> | |
using namespace __gnu_pbds; | |
template <typename T> | |
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>; | |
using ll = long long; |
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
import java.util.function.Function; | |
interface Either<A, B> { | |
public <C> C caseExpr(Function<A, C> f, Function<B, C> g); | |
} | |
class Left<A, B> implements Either<A, B> { | |
private A x; | |
public Left(A x) { |
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
describe('RedBlackTree', () => { | |
beforeEach(() => { | |
// Set-up code | |
}); | |
it('does this', () => { | |
// Asserts | |
}); | |
it('does that', () => { |
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
env: | |
browser: true | |
mocha: true | |
es6: true | |
plugins: | |
- react | |
ecmaFeatures: | |
modules: true |
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
TITLE: Lead software engineer | |
COMPANY: XIAG AG is a custom software development company with offices in Winterthur, Switzerland and | |
Novosibirsk, Russia. We build versatile Web and native applications, sometimes involving special | |
hardware integration, to meet our customers' needs with the maximum value. | |
We've successfully shipped dozens of software-centric solutions: touristic portals and agency tools, | |
booking engines, job platforms, inventory control systems, e-shops and e-commerce platforms – both | |
closed and public-facing, information gathering and analysis systems. Our code runs on the Web, | |
mobile devices, desktops, and interactive kiosks. |
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
(function () { | |
'use strict'; | |
var util = require('util'), | |
Stream = require('stream'); | |
/** | |
* A StringReader is paused by default. Only when resume() is called will it begin emitting | |
* events. It will do the following: | |
* |
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 | |
$errorsArray = function ($listObj) { | |
$result = []; | |
foreach ($listObj as $error) { | |
$result[] = ['field' => $error->getPropertyPath(), 'message' => $error->getMessage()]; | |
} | |
return $result; |
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 | |
for locale in de_ch en_us fr_fr it_it es_es nl_nl | |
do | |
curl -s "http://127.0.0.1:5984/translations_$locale/_design/main/_view/empty_namespace"\ | |
| json rows | json -a value | sed 's/}$/}\n,/' | head -n -1\ | |
| (echo '['; cat -; echo ']') | json -e 'namespace = ["default"]' | (echo '{"docs":'; cat -; echo '}')\ | |
| curl -f -H 'Content-Type: application/json' -d @- -X POST "http://127.0.0.1:5984/translations_$locale/_bulk_docs" | |
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
{ | |
"bitwise" : true, | |
"curly" : true, | |
"eqeqeq" : true, | |
"forin" : true, | |
"immed" : true, | |
"latedef" : true, | |
"newcap" : true, | |
"noarg" : true, | |
"noempty" : true, |
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 | |
$app->get('/robots.txt', function () { | |
return new Response( | |
( | |
(stripos($_SERVER['HTTP_HOST'], 'xiag') !== false) ? | |
"User-agent: *\nDisallow: /\n" : | |
"User-agent: *\n" | |
), |
NewerOlder