This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; package管理 | |
(eval-and-compile | |
(when (or load-file-name byte-compile-current-file) | |
(setq user-emacs-directory | |
(expand-file-name | |
(file-name-directory (or load-file-name byte-compile-current-file)))))) | |
(eval-and-compile | |
(customize-set-variable | |
'package-archives '(("gnu" . "https://elpa.gnu.org/packages/") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;キーバインド設定 | |
(global-set-key #\Home 'beginning-of-virtual-line) | |
(global-set-key #\End 'end-of-virtual-line) | |
(global-set-key #\S-Home 'selection-beginning-of-virtual-line) | |
(global-set-key #\S-End 'selection-end-of-virtual-line) | |
(global-set-key #\C-Home 'beginning-of-buffer ) | |
(global-set-key #\C-End 'end-of-buffer) | |
(global-set-key #\M-Right 'next-buffer) | |
(global-set-key #\M-Left 'previous-buffer) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#%% | |
import pandas as pd | |
df = pd.read_csv('https://www.city.yokohama.lg.jp/city-info/koho-kocho/koho/topics/corona-data.files/141003_yokohama_covid19_patients.csv', encoding='UTF-8') | |
#%% | |
import datetime | |
weeks = [0] * 8 | |
output = [] | |
dates = pd.to_datetime(df['公表日']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function parseTime(text) { | |
{ | |
const match = /(\d\d?)時(\d\d?)分/.exec(text); | |
if (match && match.length === 3) { | |
return [match[1], match[2]]; | |
} | |
} | |
{ | |
const match = /(\d\d?)時/.exec(text); | |
if (match && match.length === 2) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>netcoreapp3.0</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="BenchmarkDotNet" Version="0.12.0" /> | |
</ItemGroup> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding:utf-8 | |
import csv | |
from janome.tokenizer import Tokenizer | |
from wordcloud import WordCloud | |
from collections import defaultdict | |
import datetime | |
exclude_words = [u'これ', u'こと', u'そう', u'それ', u'ところ', u'みたい', u'よう', u'さん', | |
'http', 'https', 'www', 'to', 'htn', 'co', 'com', 'jp', 'ly', 'tw', 'RT', 'tinyurl', 'Bookmarking'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using GoogleCast; | |
using GoogleCast.Channels; | |
using GoogleCast.Models.Media; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace SayGoogleHome | |
{ | |
class Program | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace CaptureSaver | |
{ | |
class Program | |
{ | |
[STAThread] | |
static void Main(string[] args) | |
{ | |
if(args.Length == 0) { return; } | |
var img = Clipboard.GetImage(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h" | |
#include "gtest/gtest.h" | |
#pragma comment(lib, "gtestd.lib") | |
int Factorial(int n) { | |
int result = 1; | |
for (int i = 1; i <= n; i++) { | |
result *= i; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class StringExtensions | |
{ | |
public static string Join<T>(this T[] self, string separator) | |
{ | |
return string.Join(separator, self.Select(x => x.ToString()).ToArray()); | |
} | |
} |
NewerOlder