Skip to content
View Task Calculator
use feature 'switch';
our $minus = 0; #флаг, который устанавливается при обнаружении унарного минуса
while (<>) {
my @F, $F, @RPN, @stack;
@F = split;
#преобразуем в обратную польскую нотацию применяя метод сортировочной станции
for my $i (0 .. $#F) {
View ulimit proc stat
for USER in `ps -ef | egrep -v '^UID' | awk '{ print $1 }' | sort -u`; do echo -n "$USER: "; ps -u $USER -L | wc -l; done | sort -rn -k2
View MonadSequence.scala
import scala.language.higherKinds
def sequence[A, M[X] <: TraversableOnce[X]](in: M[Monad[A]])(implicit cbf: CanBuildFrom[M[Monad[A]], A, M[A]]): Monad[M[A]] = {
val unit = Monad(cbf(in))
(mba, ma) => for (ba <- mba; a <- ma) yield ba += a
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View Example.scala
object Example {
implicit val es = Executors.newCachedThreadPool
val metrics = new MetricsCollectorImpl(MetricsCollectorConfiguration("example", "localhost", 8125))
val ironConfig: IronMqConfig = ???
val iron = IronMqMessaging(ironConfig, QueueName("example-queue"))
def main(args: Array[String]) {
val consumer = StreamMq(iron, metrics).consumer
View rancher-deploy.js
#!/usr/bin/env node
process.env.RANCHER_URL = '<your project URL here>';
process.env.RANCHER_ACCESS_KEY = '<your access key here>';
process.env.RANCHER_SECRET_KEY = '<your secret key here>';
var spawn = require('child_process').spawn;
var exec = require('child_process').exec;
var path = require('path');
var fs = require('fs')
View index.js
var cover = new THREE.MeshNormalMaterial();
var sphereShape = new THREE.SphereGeometry(100, 20, 15);
var sphereMesh = new THREE.Mesh(sphereShape, cover);
var clock = new THREE.Clock();
function animate() {
View gist:ab216faf0425bb89421e
[info] Resolving com.tapad.hadoop#common-sbt-scalding;1.0.4-rc01 ...
[warn] module not found: com.tapad.hadoop#common-sbt-scalding;1.0.4-rc01
[warn] ==== typesafe-ivy-releases: tried
[warn] ==== sbt-plugin-releases: tried
[warn] ==== local: tried
[warn] /Users/james.pagliuca/.ivy2/local/com.tapad.hadoop/common-sbt-scalding/scala_2.10/sbt_0.13/1.0.4-rc01/ivys/ivy.xml
[warn] ==== public: tried
View minio-db.go
// Micro services environment provisions one Minio server per application instance.
// Scalability is achieved to through large number of smaller personalized instances.
// This version of the Minio binary is built using RocksDB storage backend for solid state disks.
// It is ideal for storing tiny objects with sizes ranging from few KBs to MBs.
// Minio binary is small enough to be bundled along with the application stack.
View Aspect Ratio SCSS
@mixin aspect-ratio($width, $height) {
position: relative;
&:before {
display: block;
content: "";
width: 100%;
padding-top: ($height / $width) * 100%;
> .content {
position: absolute;
Something went wrong with that request. Please try again.