Skip to content

Instantly share code, notes, and snippets.

@Overdrivr
Overdrivr / Notes on C&C++ package managers.md
Last active July 15, 2022 19:33
Why C/C++ package managers fail for now ?

Motivation

As for now (mid 2016), there doesn't seem to be a C/C++ package manager that stands out of the crowd. To understand the reasons behind this failure, I will try to list in this README most C/C++ package managers, highlight differences between them, then list critics that are made about them.

Note: this README is merely a gathering of personnal notes, doesn't intend to be a reference in any way.

A standard proposal : http://open-std.org/JTC1/SC22/WG21/docs/papers/2016/p0235r0.pdf

Package managers

diffってなんだ

2つの要素に対して差分を求めるとは、何が変わっていないのか、何が追加されたのか、何が削除されたのか、求める行為である。

差分を計算するために、下記3つを計算する。

  • 編集距離 (levenshtein distance)
  • 2つの要素の差分を数値化したもの
  • LCS (Longest Common Subsequence)
  • 2つの要素 X と Y の最長共通部分列
@karloku
karloku / README.md
Last active March 30, 2018 07:28
Rails Template using GraphQL

This template is supposed to be applied to rails 5.

run with:

rails new <application_name> --template=https://gist.githubusercontent.com/karloku/edd6a158e275fdefa334/raw/b56175bee5b45d32310aeb620e23be44e3c2a56d/graphql_template.rb -T

using gems:

  • graphql
  • graphql-mutable_type
@p-chan
p-chan / emoji-commit-message-guideline.md
Last active August 10, 2020 05:40
絵文字でコミットメッセージ書く

emoji-commit-message-guideline

GitHubにおいて「コミットメッセージは英語で書くべき」というのはもはやデファクトになりつつある。

しかし、日本人のみでプロジェクトを進行する場合、英語で統一するのは無理があると思う。
基本的に、日本人中心でリポジトリ運営を行う場合、日本語でコミットメッセージを書くべきだ。
ただし、世界に向けたOSSである場合はこの限りではない。

メインのコミッターだけでなく、たまにプルリクをくれる人や、Issueを建ててくれる人などのことを考えて使用言語を決めるべきである。

@ahmadawais
ahmadawais / gulpfile.js
Last active October 12, 2021 08:21
Gulp: Useing ngrok with BrowserSync
// first run npm install ngrok - then put var ngrok = require('ngrok'); at the top of your gulpfile
var ngrok = require('ngrok');
var browserSync = require('browser-sync')
browserSync({
server: "./app"
}, function (err, bs) {
ngrok.connect(bs.options.get('port'), function (err, url) {
// https://757c1652.ngrok.com -> 127.0.0.1:8080
});
});
@mizchi
mizchi / フロントエンドを楽にするために.md
Last active June 21, 2025 08:07
フロントエンドを楽にするために

フロントエンドを楽にするために

Qiitaを支えたい技術 at 時雨祭

About

  • HN: mizchi
  • Qiitaの方からきました(入社半年たったらしい)
  • Reactオジサンはそろそろ飽きてきた
  • Angularに興味が無いのでこっちにきた
@rummelonp
rummelonp / Capfile
Created January 22, 2015 11:22
capistrano 3 でサブディレクトリをデプロイするやつ
require 'capistrano/git'
class Capistrano::Git
module SubDirectoryStrategy
include DefaultStrategy
def release
git :archive, fetch(:branch), fetch(:project_root), '| tar -x -C', release_path, "--strip=#{fetch(:project_root).count('/')+1}"
end
end
@teppeis
teppeis / gist:54cc85137e6b581a6f95
Last active May 18, 2017 02:35
Promise/非同期のテストを簡単にする新しいアサーションヘルパーのご紹介

Promise/非同期のテストを簡単にする新しいアサーションヘルパーのご紹介

この前のブログ記事見た人はごめん。

Promise/非同期のテストは難しい

どこが間違ってるか分かります?

@yosshy
yosshy / Dockerfile
Last active August 19, 2019 16:26
Dockerfile for Ubuntu 14.04 with upstart
FROM ubuntu:14.04
MAINTAINER Akira Yoshiyama <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
RUN mkdir -p /etc/apt /var/run
ADD sources.list /etc/apt/sources.list
RUN rm /etc/apt/sources.list.d/*
RUN apt-get update
RUN apt-get install --reinstall -y openssh-server python-apt upstart sysvinit-utils
RUN mv /sbin/initctl.distrib /sbin/initctl