role | description |
---|---|
admin |
|
editor |
|
contributor |
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
package io.airfocus.workspaceservice.managers | |
import akka.Done | |
import akka.actor.ActorSystem | |
import akka.stream.scaladsl.{Sink, Source} | |
import com.typesafe.scalalogging.LazyLogging | |
import scala.concurrent.duration._ | |
import scala.concurrent.{ExecutionContext, Future} | |
import scala.util.{Failure, Success} |
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
#!/usr/bin/python | |
# python -c "$(curl -fsSL https://gist.githubusercontent.com/choffmeister/d0caa672d389a05952a44528158ecfd6/raw/video-to-gif.py)" --width=720 --fps=1 video.mov | |
import argparse | |
import os | |
import re | |
import subprocess | |
from datetime import datetime | |
parser = argparse.ArgumentParser(description='video to gif') |
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 React from "react"; | |
import PropTypes from "prop-types"; | |
// => /a | |
const userFlowA = [ | |
{ key: "date", Component: SelectFlightDate }, | |
{ key: "insurance", Component: SelectInsurances } | |
]; | |
// => /b |
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
#!/usr/bin/python | |
import subprocess | |
import os | |
import re | |
import sys | |
import itertools | |
semver_regex = '^(?:v)?(\d+)\.(\d+)\.(\d+)(\-(.*))?$' |
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 akka.actor.ActorSystem | |
import akka.cluster.seed.ZookeeperClusterSeed | |
trait MyAkkaSeedComponent { | |
def actorSystem: ActorSystem | |
val extension = ZookeeperClusterSeed(actorSystem) | |
extension.join() | |
} |
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
package demo | |
import spray.json._ | |
import scala.language.implicitConversions | |
class RootJsonFormatWithDefault[T](inner: RootJsonFormat[T]) { | |
def withDefault[V](key: String, defaultValue: => V)(implicit writer: JsonWriter[V]): RootJsonFormat[T] = new RootJsonFormat[T] { | |
override def read(json: JsValue) = { | |
if (json.asJsObject.fields.contains(key)) inner.read(json) |
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 javax.net.ssl.SSLSocket; | |
import javax.net.ssl.SSLSocketFactory; | |
import java.io.*; | |
/** Establish a SSL connection to a host and port, writes a byte and | |
* prints the response. See | |
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services | |
*/ | |
public class SSLPoke { | |
public static void main(String[] args) { |
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
/* eslint-env node */ | |
'use strict' | |
const Bluebird = require('bluebird') | |
const childProcess = require('child_process') | |
function gitCommand (args) { | |
return new Promise((resolve, reject) => { | |
childProcess.execFile('git', args, (err, stdout, stderr) => { | |
if (!err) { |
NewerOlder