Skip to content

Instantly share code, notes, and snippets.

# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nobuta05
nobuta05 / pyomo_test.py
Last active November 10, 2020 18:47
pyomo example
import pyomo.environ as pyo
from pyomo.opt import SolverFactory
S = [
(2,2), (5,2), (8,2),
(2,5), (5,5), (8,5),
(2,8), (5,8), (8,8)
]
V = [
@nobuta05
nobuta05 / hoge.svg
Created October 17, 2020 18:20
practice for plantuml
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nobuta05
nobuta05 / test.pu
Created October 17, 2020 17:57
practice of plantuml
@startuml hoge
:事象発生;
if ("条件1"は成立するか?) then (YES)
if ("条件2"は成立するか?) then (YES)
#lightPink:原因aが考えられます|
stop
else (NO)
if ("条件3"は成立するか?) then (YES)
#lightPink:原因b-1が考えられます|
@nobuta05
nobuta05 / test.dot
Last active October 17, 2020 13:51
practice of the dot languagex
digraph G {
graph [
compound = true,
concentrate = true,
splines = line
];
node [
shape = record,
fontname = "Noto Sans Mono CJK JP"
];
@nobuta05
nobuta05 / Gemfile
Created August 23, 2020 13:27
asciidoctor_example
# frozen_string_literal: true
source "https://rubygems.org"
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
# gem "rails"
gem "asciidoctor"
gem "asciidoctor-pdf"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.