Skip to content

Instantly share code, notes, and snippets.

@innovid-rnd
innovid-rnd / main.dart
Created August 9, 2018 10:38
Homey Flutter project main file
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'SplashScreen.dart';
import 'HomePage.dart';
import 'UploadPhoto.dart';
final ThemeData kIOSTheme = new ThemeData(
primarySwatch: Colors.blueGrey,
accentColor: Colors.blueGrey,
@innovid-rnd
innovid-rnd / smoke_test.sh
Created March 15, 2018 07:45
Hygieia - Run Command Example
node smoke_test.js
@innovid-rnd
innovid-rnd / innovid_website_spec.js
Created March 15, 2018 07:43
Hygieia - Test Example
describe("Innovid Website", () => {
it("should present 'Innovid Video Marketing Platform' title when the page is loaded", async () => {
const page = await hygieia.open('http://www.innovid.com/', {
headless: true,
slowMo: 300,
timeout: 10000
});
await page.waitForNavigation();
@innovid-rnd
innovid-rnd / smoke_test.js
Last active March 15, 2018 07:46
Hygieia - Setup Example
const hygieia = require('@innovid/hygieia');
hygieia.setup({
viewport: { width: 1280, height: 800 }
})
.specDir('./specs')
.reporters([{name: 'spec'}, {name: 'teamcity'}])
.run();
brew tap foo/bar git@bitbucket.org:innovid/repo-name-with-the-script-to-install.git
#will clone that repository and add the formulas in it to the brew search path.
brew install hello-world
#will install our script.
brew uninstall hello-world
#will unlink the script from our path and delete it.
brew home hello-world
#will open the documentation web page of our script (as defined in the homepage property of our formula).
brew info hello-world
#will print a description of the script (including when and where it was installed, the formula that was used, and the size of the script).
# `test do` will create, run in, and delete a temporary directory.
 test do
create_wrapper
# asserting our formula logic works. 
assert_equal %w(ddv-cli Library), Dir.glob(“*”)
 end
# Helper method for the common case of installing a Python application.
# Creates a virtualenv in `libexec`, installs all `resource`s defined
# on the formula, and then installs the formula.
def virtualenv_install_with_resources(options = {})
python = options[:using]
if python.nil?
wanted = %w[python python@2 python@3 python3].select { |py| needs_python?(py) }
raise FormulaAmbiguousPythonError, self if wanted.size > 1
python = wanted.first || "python2.7"
end
#/usr/local/Homebrew/Library/Homebrew/language/python.rb <-- this trait is located here
# Mixin module for {Formula} adding virtualenv support features.
module Virtualenv
def self.included(base)
base.class_eval do
resource "homebrew-virtualenv" do
url PYTHON_VIRTUALENV_URL
sha256 PYTHON_VIRTUALENV_SHA256
end
end
class SomeCli < Formula
include Language::Python::Virtualenv
desc "A script that travels back in time and ..."
homepage "https://bitbucket.org/innovid/repo-name-with-the-script-to-install/src/HEAD/directory/"
version "0.19"
url "git@bitbucket.org:innovid/repo-name-with-the-script-to-install.git", :using => :git
resource "boto3" do
url "https://pypi.python.org/packages/32/08/42eae36fc58bb0b2da92c6fe2a274efec6c8bfe4f964bcdd1dddb9b6477a/boto3-1.5.36.tar.gz"
brew tap innovid/hello git@bitbucket.org:innovid/repo-name-with-the-script-to-install.git
==> Tapping innovid/hello
Cloning into ‘/usr/local/Homebrew/Library/Taps/innovid/homebrew-hello’…
remote: Counting objects: …, done.
Tapped 1 formulae (1 files, 3KB) 
#To undo this execute: brew untap innovid/hello