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 | |
echo "Setting up Umbreo" | |
set -u | |
set -e | |
# Some utility functions. | |
fail() { echo >&2 "$@"; exit 1; } | |
cmd() { hash "$1" >&/dev/null; } # portable 'which' |
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
from django.core import management | |
from django.core.management.base import BaseCommand | |
import os | |
import test_data | |
class Command(BaseCommand): | |
args = 'Arguments email and is paginated needed' | |
help = 'Django populate DB with test data.' | |
def handle(self, *args, **options): |
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/env ruby | |
# Gems needed : sinatra, jenkins_api_client | |
# This file is a light web-server using Sinatra that responds to Github events. | |
# The purpose of this file is to run jobs when some events are triggered in Github. | |
require 'sinatra' | |
require 'json' | |
require 'net/http' | |
require 'jenkins_api_client' |
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
//===================================================================== | |
// store.js | |
const initialState = { | |
data: {} | |
} | |
import React, { createContext, useReducer } from 'react' | |
import appReducer from './reducers/appReducer.js' |