This file contains hidden or 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
| # Go to Verboice main folder | |
| cd verboice | |
| # Open console | |
| bundle exec rails c production | |
| # Retrieve the first user | |
| u = User.first | |
| # This line should print the user's email, check that it is the one you expect |
This file contains hidden or 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
| apiVersion: extensions/v1beta1 | |
| kind: Job | |
| metadata: | |
| name: brium-dbsetup | |
| spec: | |
| selector: | |
| matchLabels: | |
| app: brium-dbsetup | |
| template: | |
| metadata: |
This file contains hidden or 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
| var os = require('os'); | |
| var fs = require('fs'); | |
| var http = require('http'); | |
| http.post = require('http-post'); | |
| var _ = require('lodash'); | |
| var Botkit = require('botkit'); | |
| var briumUrl = 'http://brium.me'; | |
| var main = function(slackToken, briumToken) { |
This file contains hidden or 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
| HEIGHT = 800; | |
| WIDTH = 1200; | |
| CANDIDATES = 5; | |
| INTERVAL = 1000; | |
| var logos = []; | |
| var tryPositionLogo = function(width, height) { | |
| var candidate = null; | |
| var candidateValue = null; |
This file contains hidden or 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
| require "rubygems" | |
| require "nuntium" | |
| SERVER = "" | |
| ACCOUNT = "" | |
| APPLICATION = "" | |
| PASSWORD = "" | |
| COUNT = 1000 | |
| FROM = "" |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <verboice-service> | |
| <name>Callback test</name> | |
| <steps> | |
| <step name="callback-test" | |
| display-name="Callback test" | |
| icon="medicalkit" | |
| type="callback" | |
| callback-url="http://requestb.in/y9fz04y9"> | |
| <settings> |
This file contains hidden or 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
| testruby.bundle: testruby.cr | |
| crystal testruby.cr --link-flags "-dynamic -bundle -Wl,-undefined,dynamic_lookup" -o testruby.bundle | |
| irb: testruby.bundle | |
| irb -rtestruby -I. | |
| clean: | |
| rm -rf .crystal testruby.bundle |
This file contains hidden or 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
| # Adapted from http://pfertyk.me/2016/11/crystal-in-real-life/ | |
| require "stumpy_png" | |
| canvas = StumpyPNG.read("image.png") | |
| canvas.width.times do |x| | |
| canvas.height.times do |y| | |
| color = canvas[x, y] | |
This file contains hidden or 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
| 0x9D49a5aBBD1AD73aA7D0547e3Ec5B14ce640718E |
This file contains hidden or 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 node | |
| if (process.env.NODE_ENV === 'production') { | |
| throw new Error("Do not use nodemon in production, run bin/www.js directly instead"); | |
| } | |
| const nodemon = require('nodemon'); | |
| const ngrok = require('ngrok'); | |
| // We start an ngrok tunnel to ensure it stays the same for the entire process |