更新情報
・問題を追加(2020/4/18)
・表記揺れを整理(2020/1/13)
・TypeScript問題集のリンク追加(2019/7/13)
document.querySelectorAll('img[src*="https://pbs.twimg.com/media/"]').forEach(function(ele) { | |
// 最初の要素はformatがついていないので | |
let index = ele.src.indexOf('?'); | |
let url; | |
if (index !== -1) { | |
url = ele.src.substr(0, index) | |
} else { | |
url = ele.src | |
} | |
url += '?format=png&name=4096x4096'; |
If you want to use multiple dbs at once there are several different ways... | |
1) If you want to do this on a per-model level, use .store_in (This is for all threads): | |
class Band | |
include Mongoid::Document | |
store_in database: "secondary" # This can be any name you want, no need to put it in the mongoid.yml. | |
end | |
class Artist |
package main | |
import ( | |
"log" | |
"testing" | |
"github.com/google/uuid" | |
) | |
func uuidString() string { |
It's recommend to use the Vive Trackers 2018 since they have less interference with the Oculus Touch controllers. Also some of the steps are only necessary for the moment because of some bugs and broken tools.
I recommend you to join this Discord server if you have any questions: https://discord.gg/bkRgTVw. You can also check this document for fixes to some common issues.
Written by Ind3x. Thanks to Dj Lukis.LT and Kaori for several additional hints.
Steam\config\steamvr.vrsettings
with Windows' Notepad and add the following to the beginning of the steamvr
section. Click here to see a short video on how to do that.Latency Comparison Numbers | |
-------------------------- | |
L1 cache reference/hit 1.5 ns 4 cycles | |
Floating-point add/mult/FMA operation 1.5 ns 4 cycles | |
L2 cache reference/hit 5 ns 12 ~ 17 cycles | |
Branch mispredict 6 ns 15 ~ 20 cycles | |
L3 cache hit (unshared cache line) 16 ns 42 cycles | |
L3 cache hit (shared line in another core) 25 ns 65 cycles | |
Mutex lock/unlock 25 ns | |
L3 cache hit (modified in another core) 29 ns 75 cycles |
using System; | |
using System.Collections.Generic; | |
using Newtonsoft.Json; | |
namespace csharp | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
import numpy as np | |
import random | |
import math | |
import cv2 | |
from PIL import Image | |
def detect_markers(im): | |
markers = [] | |
# 輪郭線抽出のための二値化 | |
im_gray = cv2.cvtColor(im, cv2.COLOR_BGR2GRAY) |
#!/bin/bash | |
# Author: Erik Kristensen | |
# Email: [email protected] | |
# License: MIT | |
# Nagios Usage: check_nrpe!check_docker_container!_container_id_ | |
# Usage: ./check_docker_container.sh _container_id_ | |
# | |
# Depending on your docker configuration, root might be required. If your nrpe user has rights | |
# to talk to the docker daemon, then root is not required. This is why root privileges are not |
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" |