Skip to content

Instantly share code, notes, and snippets.

View nobuh's full-sized avatar

Nobuhiro Hatano nobuh

View GitHub Profile
@mrry
mrry / tensorflow_self_check.py
Last active September 26, 2024 15:39
[DEPRECATED] TensorFlow on Windows self-check
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@nobuh
nobuh / equation_in_jupyter.ipynb
Last active June 21, 2018 21:23
jupyter notebook で数式
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@0x4D31
0x4D31 / beautiful_idiomatic_python.md
Last active May 22, 2025 08:53 — forked from JeffPaine/beautiful_idiomatic_python.md
[Beautiful Idiomatic Python] Transforming Code into Beautiful, Idiomatic Python #python

Transforming Code into Beautiful, Idiomatic Python

Notes from Raymond Hettinger's talk at pycon US 2013 video, slides.

The code examples and direct quotes are all from Raymond's talk. I've reproduced them here for my own edification and the hopes that others will find them as handy as I have!

Looping over a range of numbers

for i in [0, 1, 2, 3, 4, 5]:
@nobuh
nobuh / .vimrc
Created September 20, 2017 01:08
my vimrc
" To insert spaces whenever the tab key is pressed.
" To expand existing tabs, use :retab
set expandtab
" Number of spaces inserted for indentation.
set shiftwidth=4
" BS delete spaces for tabs
set smarttab
" Without .swap files
set noswapfile
set tabstop=4
<?php
const EXIT_SUCCESS = 0;
const EXIT_FAILURE = 0;
const COLUMN_ID_SIZE = 19;
const COLUMN_USERNAME_SIZE = 32;
const COLUMN_EMAIL_SIZE = 80;
const ID_SIZE = COLUMN_ID_SIZE;
@voluntas
voluntas / index.md
Last active July 9, 2025 15:58
Zig 言語リファレンス
  • これは Zig ドキュメント 0.10.1 を DeepL Pro と ChatGPT を利用して翻訳したものです。
    • 一部 master なモノもあります、ごちゃ混ぜです
  • 自分用に翻訳しています
@ankithooda
ankithooda / gist:b0d624aec9b3ed2882713d59feba4b11
Last active October 25, 2024 15:38
SimpleDB setup instructions from terminal - NO IDE
# Get SimpleDB_3.4.zip from here - http://www.cs.bc.edu/~sciore/simpledb/
# Tested using OpenJDK 17.0.2
# Unzip SimpleDB_3.4
> unzip SimpleDB_3.4.zip
> cd SimpleDB_3.4
# Create bin folder to store the compiled .class files
> mkdir -p bin/server
@andrewstellman
andrewstellman / Pinwheel.cs
Created March 20, 2025 18:45
Elliptical Pinwheel Animation for C# Console
Console.CursorVisible = false;
Console.Clear();
// Get console dimensions
int width = Console.WindowWidth;
int height = Console.WindowHeight;
// Center point of the pinwheel
int centerX = width / 2;
int centerY = height / 2;