Skip to content

Instantly share code, notes, and snippets.

View arsley's full-sized avatar
💥
RAISE Y:eye:UR HEADS UP

Aoshi Fujioka arsley

💥
RAISE Y:eye:UR HEADS UP
View GitHub Profile
@arsley
arsley / index.js
Last active July 8, 2019 13:48
Textlint without CLI
const { TextlintKernel } = require('@textlint/kernel');
const readlineSync = require('readline-sync');
// create instance of Textlint
const kernel = new TextlintKernel();
// factory function of 'textlint-rule-preset-japanese' rules
function mapUtil(presets) {
const rules = presets.rules;
const configs = presets.rulesConfig;
@arsley
arsley / des.rb
Last active December 23, 2019 08:49
Data Encryption Standard on Ruby
# frozen_string_literal: true
require 'bundler/inline'
gemfile do
gem 'test-unit'
gem 'function_chain'
end
require 'function_chain'
@arsley
arsley / luckyframework-example.dockerfile
Last active March 18, 2019 12:21
Luckyframework Dockerfile example
FROM crystallang/crystal:0.27.2 AS build
RUN apt-get update -qq && apt-get install -y wget
RUN git clone https://github.com/luckyframework/lucky_cli && \
cd lucky_cli && \
git checkout v0.13.2 && \
shards install && \
crystal build src/lucky.cr
@arsley
arsley / yarn-node-installation.dockerfile
Last active March 17, 2019 10:51
Yarn & Node installation example for Docker
# FROM somewhere...
RUN apt-get update -qq && \
apt-get install -y \
postgresql-client \
graphviz \
tzdata && cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime && \
curl -sL https://deb.nodesource.com/setup_11.x | bash - && \
apt-get install -y nodejs && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
@arsley
arsley / init.coffee
Last active July 30, 2021 03:28
My Atom packages with settings
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->