Skip to content

Instantly share code, notes, and snippets.

View Stevearzh's full-sized avatar
🐈
Thinking

Steve Zhang Stevearzh

🐈
Thinking
View GitHub Profile
@Stevearzh
Stevearzh / roguelike-dossier.mkd
Created July 10, 2020 03:51 — forked from jagt/roguelike-dossier.mkd
roguelike-dossier

Roguelike 到底是啥

讲讲 Roguelike 相关知识

最后更新 2013.5.28

引言

如果你是一位资深游戏玩家,那么最近你肯定在哪里看到过 Roguelike 这个词。Roguelike 这个古老的游戏类型现在又变得很潮流,其中各种要素都在不断的被新游戏借鉴。作为一名就是比你有更多空余时间的高玩,我想在这里介绍一下我了解的 Roguelike 相关的东西。文章很长,但应该会比较有意思。

function is_ascii(str) {
return /^[\x00-\x7F]*$/.test(str);
}
function is_seperator(c) {
return [" ", ",", "。", ",", ";", ",", "?", ".", "?", ";", "《", "》"].indexOf(c) > -1;
}
function random_choice(arr) {
return arr[Math.floor(arr.length * Math.random())];
@Stevearzh
Stevearzh / removeFromQuery.js
Created December 25, 2018 18:20
remove a lock game from steam discovery query
$J.post("/app/7", { sessionid: g_sessionID, appid_to_clear_from_queue: 955560 })
@Stevearzh
Stevearzh / .spacemacs
Created April 10, 2018 08:28
my .spacemacs
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
# Copy and self modified from ys.zsh-theme, the one of default themes in master repository
# Clean, simple, compatible and meaningful.
# Tested on Linux, Unix and Windows under ANSI colors.
# It is recommended to use with a dark background and the font Inconsolata.
# Colors: black, red, green, yellow, *blue, magenta, cyan, and white.
# http://xiaofan.at
# 2 Jul 2015 - Xiaofan
# Machine name.
function box_name {

Keybase proof

I hereby claim:

  • I am stevearzh on github.
  • I am stevearzh (https://keybase.io/stevearzh) on keybase.
  • I have a public key ASA0kq_ParrxdPWoBRXZeoJeRapZhBJs0yqTZU17sAwR3go

To claim this, I am signing this object:

@Stevearzh
Stevearzh / graph.js
Last active September 11, 2017 09:40
data structures & algorithms with javascript
class Vertex {
constructor (label, wasVisited) {
this.label = label;
this.wasVisited = wasVisited;
}
}
class Graph {
constructor (v) {
this.vertices = v;
@Stevearzh
Stevearzh / .emacs
Last active December 25, 2015 17:07
;; ------------------------------------------------------------ ;;
;; MELPA
;; ------------------------------------------------------------ ;;
(require 'package)
(dolist (source '(
("melpa" . "http://melpa.org/packages/")
))
(add-to-list 'package-archives source t))
(when (< emacs-major-version 24)
;; For important compatibility libraries like cl-lib
@Stevearzh
Stevearzh / netAP
Created September 20, 2013 17:13
Open AP on Linux
#!/bin/bash
###########################################
#This shell is modified from Leon Lee, or-#
#iginal version see here: #
# #
#https://gist.github.com/anonymous/1117004#
# #
# #
#Notice: To run this shell, you should in-#