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 psutil | |
def findgame(): | |
for _ in psutil.pids(): | |
try: | |
name = psutil.Process(_).name() | |
except psutil.NoSuchProcess: | |
continue | |
if name == "TslGame.exe": |
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
% encoded in UTF-8 | |
\documentclass[a4paper]{article} | |
\usepackage{CJKutf8} | |
\usepackage{amsmath} | |
\usepackage{lmodern} | |
\usepackage{algorithm} | |
\usepackage{algorithmic} | |
% \Ja{text}: Outputs Japanese text. | |
\newcommand*{\Ja}[1]{% | |
\begin{CJK}{UTF8}{gbsn}#1\end{CJK}} |
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 <iostream> | |
#include <memory.h> | |
//using namepsace std; | |
enum Var { m, v, r, s, x }; // Change your variables here | |
char str[10] = "mvrsx"; // And here. | |
int in[20], out[20], def[20], use[20]; |
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 bigdatateam.burstyword; | |
import java.util.HashMap; | |
import java.util.Map; | |
import org.apache.storm.Config; | |
import org.apache.storm.LocalCluster; | |
import org.apache.storm.StormSubmitter; | |
import org.apache.storm.task.ShellBolt; | |
import org.apache.storm.spout.ShellSpout; |
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 -*- | |
# Licensed to the Apache Software Foundation (ASF) under one | |
# or more contributor license agreements. See the NOTICE file | |
# distributed with this work for additional information | |
# regarding copyright ownership. The ASF licenses this file | |
# to you 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 | |
# |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 multiprocessing | |
from multiprocessing import Pool | |
import cv2 | |
import numpy as np | |
import ctypes | |
shared_array_base = multiprocessing.Array(ctypes.c_uint8, 1080*1920*3) | |
shared_array = np.ctypeslib.as_array(shared_array_base.get_obj()) | |
shared_array = shared_array.reshape(1080, 1920, 3) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.