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
{ pkgs, lib, ... }: | |
{ | |
# https://devenv.sh/packages/ | |
packages = [ | |
pkgs.glib | |
pkgs.glibc | |
]; | |
languages.python.enable = true; |
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
{ | |
"name": "openweathermap", | |
"defaultService": "default", | |
"services": [ | |
{ | |
"id": "default", | |
"baseUrl": "https://api.openweathermap.org" | |
} | |
], | |
"securitySchemes": [ |
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 | |
require "srt" | |
require "sanitize" | |
REJECT_LINES = [/Best watched using Open Subtitles MKV Player/, | |
/Subtitles downloaded from www.OpenSubtitles.org/, /^Subtitles by/, | |
/www.tvsubtitles.net/, /subtitling@bbc.co.uk/, /addic7ed/, /allsubs.org/, | |
/www.seriessub.com/, /www.transcripts.subtitle.me.uk/, /~ Bad Wolf Team/, | |
/^Transcript by/, /^Update by /, /UKsubtitles.ru/ | |
] |
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 | |
# Usage: check-urls.sh <urls list> | |
# <urls list> is a text file with 1 URL per line | |
echo "url;http_code;url_effective;error" | |
while read -r LINE; do | |
echo -n "$LINE;" | |
curl -o /dev/null -sS --max-time 5 --write-out '%{http_code};%{redirect_url};' "$LINE" 2> >(sed -e 's/$/;/' | tr -d '\n' | tr -d '\r') | |
sync | |
echo "" | |
done < "$1" |
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
library(tm) | |
dirname <- "episodes" | |
rawCorpus <- Corpus(DirSource(dirname, recursive=TRUE), readerControl=list(language="en")) | |
my.corpus <- rawCorpus | |
my.stopwords <- c(stopwords("english"),"ain't","just","can","get","got","will") | |
my.stopwords <- rev(my.stopwords) # Hack to apply i'll etc. before i | |
my.stopwords <- my.stopwords[my.stopwords != "who"] # Not a stopword. Not here. |
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
# | |
# Czech translation for Devise - config/locales/devise.cz.yml | |
# 'cs' locale by https://github.com/bver | |
# Feel free to correct my translation. | |
# | |
# Note: devise.failure.invalid was intentionally changed from "email" to "identity" - | |
# - not all configurations use config.authentication_keys = [ :email ] | |
# | |
# Additional translations at http://github.com/plataformatec/devise/wiki/I18n |
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
// ==UserScript== | |
// @id gooutcalendar@jnv.github.io | |
// @name GoOut: Add Event to Google Calendar | |
// @description Displays Calendar button to easily add events to Google Calendar | |
// @namespace https://jnv.github.io | |
// @domain goout.net | |
// @include https://goout.net/* | |
// @version 2018.11.28 | |
// @grant none | |
// @run-at document-idle |
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
$ node index.js | |
dispatch on flow description: | |
building flow from SchemaObject | |
* process ********************************************************************** | |
* SERIAL ----------------------------------------------------------------------- | |
* | CONCURRENT ----------------------------------------------------------------- | |
* | - helloworld | |
* | ---------------------------------------------------------------------------- | |
* | CONCURRENT ----------------------------------------------------------------- | |
* | - wordcount |
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
const {Program} = require('bakeryjs'); | |
const program = new Program( | |
// ServiceProvider | |
{}, | |
// Program options | |
{ | |
componentPaths: [`${__dirname}/components/`], | |
} | |
); |
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
const {boxFactory} = require('bakeryjs'); | |
// Just a helper to throttle emitting | |
const {promisify} = require('util'); | |
const timeout = promisify(setTimeout); | |
module.exports = boxFactory( | |
'helloworld', | |
{ |
NewerOlder