- Precision Engineering - 尺规作图建设道路
- Traffic Manager: President Edition - 加强的路网设置
- Move It - 任意拖动地图上的物体
- 81 Tiles - 3x3地图变9x9
- Fine Road Tool & Fine Road Anarchy - 马路造得好看
- Find It! - 搜索资产
- Crossings - 道路中间手动加横道线
- Network Extensions 2 - 一堆有用的道路
- [Improved Public Transport 2](https://steamcommunit
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 java.util.*; | |
public class Main{ | |
public static boolean checkLegal(String A) { | |
Stack<Character> s = new Stack<>(); | |
HashMap<Character,Character> map = new HashMap<Character,Character>(); | |
map.put('[',']'); | |
map.put('{','}'); | |
map.put('(',')'); | |
for (char c : A.toCharArray()) { |
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
var year = 2016; | |
var month = 3; | |
var day = 30; | |
var theDate = { year, month, day }; |
This template is supposed to be applied to rails 5.
run with:
rails new <application_name> --template=https://gist.githubusercontent.com/karloku/edd6a158e275fdefa334/raw/b56175bee5b45d32310aeb620e23be44e3c2a56d/graphql_template.rb -T
using gems:
- graphql
- graphql-mutable_type
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
# This is the configuration used to check the rubocop source code. | |
AllCops: | |
Exclude: | |
- 'vendor/**/*' | |
- 'spec/fixtures/**/*' | |
- 'tmp/**/*' | |
- 'lib/templates/**/*' | |
- 'config/deploy.rb' | |
- 'config/deploy/*.rb' |
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
<!DOCTYPE html><html><head> | |
<script type="text/javascript"> | |
var sampling = Math.random() < 0.001; | |
var page_begintime = (+new Date()); | |
(sampling) && ((new Image()).src = "http://isdspeed.qq.com/cgi-bin/r.cgi?flag1=7839&flag2=7&flag3=8&15=1000&r=" + Math.random()); | |
var biz = "MzAwOTEwMDYyMw=="; | |
var sn = "665480f07764cc3ac964168a29b5a070" || ""; | |
var mid = "209864846" || ""; |
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
module API | |
module SorceryAdapter | |
AUTHENTICITY_TOKEN_LENGTH = 32 | |
def self.included(mod) | |
mod.instance_eval { | |
helpers do | |
### Adapt for Sorcery (some directly taken from rails codes) |