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
#pragma once | |
#include <cstring> | |
#include "daisy_seed.h" | |
#include "daisy_pod.h" | |
#include "util/oled_fonts.h" | |
#include "hid/disp/graphics_common.h" | |
using namespace daisy; |
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
#include <stdio.h> | |
#include "portaudio.h" | |
#include "daisysp.h" | |
using namespace daisysp; | |
#define NUM_SECONDS (20) | |
#define SAMPLE_RATE (48000) | |
Adsr metroEnv; |
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
require 'page-object' | |
require 'rspec' | |
require 'rest-client' | |
class ZapierHomePage | |
include PageObject | |
page_url("https://zapier.com") | |
div :header_logo, css: '.header__logo' | |
end |
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
def flatten(array) | |
array.reduce([]) do |arr, el| | |
arr.push *(el.is_a?(Array) ? flattify(el) : el) | |
end | |
end |
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 | |
#-------------- Module Identification Data -------------# | |
export MODULE_AKEY="b8d5d6eca9ef30427712f2f0151334a2" | |
export MODULE_AUTH="" | |
export MODULE_NAME="VK" | |
export MODULE_VERS="-0.95" | |
export MODULE_DATE="06.IX.2011" | |
export MODULE_DESC="Поиск музыки ВКонтакте" | |
export MODULE_URII="http://ftemp.net/static/vksearch"; |
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 | |
# Пример работы с VKAPI в shell-скрипте. | |
# Скрипт для работы с музыкой ВКонтакте. by snoopcatt. | |
_version="0.03a" | |
# Системные переменные | |
id="5807425" # системная переменная. ID создателя приложения. Взято из VK_Search Amarok Script (c) | |
method='audio.search' # метод поиска музыки ВКонтакте. | |
secret='dTckAoaSzH' # системная переменная. Секретный код приложения. Взято из VK_Search Amarok Script (c) |
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
# A HttpWatch proxy clone (without the license!) | |
require 'webrick/httpproxy' | |
require 'json' | |
require 'highline/import' | |
require 'webrick' | |
require 'cgi' | |
class CustomWEBrickProxyServer < WEBrick::HTTPProxyServer | |
def do_PUT(req, res) | |
perform_proxy_request(req, res) do |http, path, header| |
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
require 'rtesseract' | |
require 'RMagick' | |
require 'tesseract' | |
module OCRHelper | |
def toast?(error_msg, screens:5, delay:nil, pre_pause:nil) | |
# Thread.new{take_multiple_screens(6, 0.3, 0.5)} | |
take_multiple_screens(screens, delay, pre_pause) | |
recognize_multiple_screens(screens, error_msg) |
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
require 'rtesseract' | |
require 'RMagick' | |
module OCRHelper | |
def toast?(error_msg, screens:5, delay:nil, pre_pause:nil) | |
take_multiple_screens(screens, delay, pre_pause) | |
recognize_multiple_screens(screens, error_msg) | |
end |