Let's suppose that we want to keep two different tag versioning on the same repo:
v[0-9]*
for master branch versionsd[0-9]*
for development branch versions
Basic commands: https://git-scm.com/book/en/v2/Git-Basics-Tagging
#!/usr/bin/env perl -w | |
use 5.006; | |
use strict; | |
use warnings; | |
use YAML::Tiny; | |
use Cwd qw( cwd ); | |
use File::Spec::Functions qw( catfile catdir ); | |
my $yaml = YAML::Tiny->read( |
Let's suppose that we want to keep two different tag versioning on the same repo:
v[0-9]*
for master branch versionsd[0-9]*
for development branch versionsBasic commands: https://git-scm.com/book/en/v2/Git-Basics-Tagging
#!/usr/bin/env perl -w | |
use 5.006; | |
use strict; | |
use warnings; | |
use YAML::Tiny; | |
use Cwd qw( cwd ); | |
use File::Spec::Functions qw( catfile catdir ); | |
# This scripts allows to find out which files are excluded in .rubocop.yml |
https://www.ruby-lang.org/en/news/2017/12/25/ruby-2-5-0-released/
# https://bugs.ruby-lang.org/issues/12906
my_func = lamdbda do
begin
N = 8 -- board size | |
function isplaceok(a, n, c) | |
for i = 1, n - 1 do -- for each queen already placed | |
if (a[i] == c) or -- same column? | |
(a[i] - i == c - n) or -- same diagonal? | |
(a[i] + i == c + n) then -- same diagonal? | |
return false -- place can be attacked | |
end | |
end |
-------- BEGIN argv --------- | |
local foo = ARGV[1] -- foo | |
local bar = ARGV[2] -- foo:bar | |
local baz = ARGV[3] -- foo:baz | |
local val = ARGV[4] | |
local ttl = ARGV[5] | |
-------- END argv --------- | |
local key = "sessions::" .. foo .. "::" .. bar .. "::" .. baz |
import multiprocessing as mp | |
import os | |
import time | |
from dataclasses import dataclass | |
from datetime import datetime | |
@dataclass | |
class JobItem: | |
x: int | |
y: int |