$ rails new my-i8n --webpack
Gemfile
gem 'i18n-js'
# Splits video to separate scenes files when full black frames are found in the video | |
# Inspired by https://gist.github.com/achesco/4dc2ebf13378a0a61fc26c7fe01f539e | |
# Who got inspired by https://stackoverflow.com/a/38205105 | |
#!/bin/bash | |
file="" | |
out="./" | |
dur=0.05 | |
stripaudio="" |
# frozen_string_literal: true | |
class StimulusReflex::Reflex | |
... | |
def request | |
@request ||= begin | |
uri = URI.parse(url) | |
path = ActionDispatch::Journey::Router::Utils.normalize_path(uri.path) | |
query_hash = Rack::Utils.parse_nested_query(uri.query) |
from nltk_service_pb2 import * | |
from nltk_service_pb2_grpc import * | |
import grpc | |
import nltk | |
from concurrent import futures | |
from nltk.corpus import stopwords | |
class NltkService(KeywordServiceServicer): |
$ rails new my-i8n --webpack
Gemfile
gem 'i18n-js'
"Quillian Bureaucracy" | |
={ | |
key="Quillian Bureaucracy" | |
ship_prefix="ISS" | |
species={ | |
class="HUM" | |
portrait="humanoid_04" | |
name="Quillian" | |
plural="Quillians" | |
adjective="Quillian" |
Let's imagine we have a lot of mp3 files ( forexample one of the pluralsite courses converted to mp3 ).
URL=https://www.pluralsight.com/courses/run-effective-meetings
PASS=pass
USER=user
OUTPUT="%(playlist_index)s. %(title)s-%(id)s.%(ext)s"
youtube-dl --username $USER --password $PASS -o $OUTPUT --extract-audio --audio-format mp3 $URL
<template> | |
<div id="app"> | |
<p>{{ message }}</p> | |
</div> | |
</template> | |
<script> | |
export default { | |
data: function () { | |
return { |
#! /usr/bin/ruby | |
require 'google/apis/sheets_v4' | |
require 'googleauth' | |
require 'googleauth/stores/file_token_store' | |
require 'fileutils' | |
OOB_URI = 'urn:ietf:wg:oauth:2.0:oob' | |
APPLICATION_NAME = 'Google Sheets API Test' |
version: '2' | |
services: | |
plex: | |
image: linuxserver/plex | |
container_name: plex | |
volumes: | |
- /path/to/plex/config:/config | |
- /path/to/plex/Movies:/data/movies | |
- /path/to/plex/Shows:/data/tvshows | |
- /path/to/plex/transcode:/data/transcode |
initialize
: once, when the controller is first instantiatedconnect
: anytime the controller is connected to the DOM