This file contains hidden or 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 main | |
| import ( | |
| "bufio" | |
| "flag" | |
| "fmt" | |
| "math/bits" | |
| "net" | |
| "os" | |
| "strconv" |
This file contains hidden or 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
| { | |
| "version": "v1", | |
| "dataItems": [ | |
| { | |
| "data": null, | |
| "unit": "", | |
| "labels": { | |
| "Metric": "not applicable", | |
| "Name": "BenchmarkPerfScheduling/SchedulingBasic/5Nodes/namespace-2", | |
| "event": "not applicable", |
This file contains hidden or 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
| #!/bin/bash | |
| set -e | |
| scriptdir="$(cd "$(dirname "$0")"; pwd)" | |
| script="${scriptdir%/}/$(basename "$0")" | |
| readonly IMAGE_DIR="${HOME}/images/" | |
| readonly CONTAINER_DIR="${HOME}/container/" | |
| escape() { |
This file contains hidden or 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
| { | |
| "ociVersion": "1.0.2-dev", | |
| "process": { | |
| "terminal": false, | |
| "user": { | |
| "uid": 0, | |
| "gid": 0 | |
| }, | |
| "args": [ | |
| "sleep", "5" |
This file contains hidden or 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
| #/bin/sh | |
| # Require: | |
| # $ sudo apt install inotify-tools | |
| # Usage: | |
| # $ chmod +x watch.sh | |
| # $./watch.sh file.saty | |
| while inotifywait -qre modify . |
This file contains hidden or 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
| diff --git a/mkdir.c b/mkdir.c | |
| index 6e4c954..f1a0a41 100644 | |
| --- a/mkdir.c | |
| +++ b/mkdir.c | |
| @@ -1,11 +1,13 @@ | |
| #include "types.h" | |
| #include "stat.h" | |
| +#include "date.h" | |
| #include "user.h" |
This file contains hidden or 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
| extern crate libc; | |
| use std::thread; | |
| use std::mem; | |
| use std::cell::UnsafeCell; | |
| use std::os::unix::io::RawFd; | |
| use std::sync::mpsc::{RecvError, SendError}; | |
| use libc::{c_int, c_void, close, size_t}; | |
| use libc::pipe as c_pipe; | |
| use libc::write as c_write; |
This file contains hidden or 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
| @keywords = ['private','protected','public'] | |
| @keywords << ['void','int','float','double','char'] | |
| @keywords.flatten! | |
| def extraction(file_name) | |
| output = [] | |
| File.open(file_name) do |file| | |
| file.each_line do |labmen| | |
| labmen = labmen.encode("UTF-8", "UTF-8", :invalid => :replace, :undef => :replace, :replace => '?') | |
| class_name = labmen[/class\s(\w+)/, 1] |
This file contains hidden or 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 | |
| require 'twitter' | |
| require 'date' | |
| require 'google/api_client' | |
| require 'google/api_client/client_secrets' | |
| require 'google/api_client/auth/installed_app' | |
| require 'google/api_client/auth/file_storage' | |
| SEARCH_WORD = ARGV[0] |
This file contains hidden or 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 time | |
| import math | |
| import cv2 | |
| import sys | |
| import numpy as np | |
| # 座標を管理するクラス | |
| class Point: |
NewerOlder