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
{ | |
"relations": [ | |
{ | |
"id": 24, | |
"role": "admin", | |
"edges": { | |
"Org": null, | |
"User": { | |
"id": 1, | |
"name": "abc", |
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
class Node: | |
def __init__(self, key=None, value=None, prev=None, next=None): | |
self.key = key | |
self.value = value | |
self.prev = prev | |
self.next = next | |
def leave(self): | |
prev, next = self.prev, self.next | |
assert isinstance(prev, Node) |
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
import datetime | |
import time | |
from _thread import RLock | |
from functools import update_wrapper, _make_key, _CacheInfo | |
# Check the example at the end of this script. | |
class Node: | |
"""node of the circular doubly linked list""" |
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
(function _exec(){ | |
var appids, | |
running = true, | |
queueNumber, | |
progressDialog = ShowAlertDialog('探索中', $J('<div/>').append($J('<div/>', {'class': 'waiting_dialog_throbber'}) ).append( $J('<div/>', {'id': 'progressContainer'}).text('获取进度...') ), '停止').done(abort); | |
function abort(){ | |
running = false; | |
progressDialog.Dismiss(); | |
} | |
function retry(){ |
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
[ | |
"为所欲为的前勇者再度转生,开始强大而愉快的第二轮游戏(不自重前勇者强大又轻松的NEW GAME)", | |
"结束时在做什么呢?正忙着吗?被拯救可以吗?(末日时在做什么?有没有空?可以来拯救吗?)", | |
"死神外传小说(BLEACH Spirits Are Forever With You)", | |
"普通攻击是全体二连击,这样的妈妈你喜欢吗?(平A=两次全体攻击的老妈你喜欢吗?)", | |
"身为男高中生兼当红轻小说作家的我,正被年纪比我小且从事声优工作的女同学掐住脖子", | |
"加入年轻人敬而远之的黑魔法公司,没想到工作待遇好,社长和使魔也超可爱,太棒了!", | |
"为了拯救世界的那一天─Qualidea Code─(为了终有一天能拯救世界)", | |
"转生成女性向游戏里尽是毁灭FLAG的反派千金了(转生恶役只好拔除破灭旗标)", | |
"喜欢上亲友的女友的向井弘凪的罪与罚(喜欢上死党的女友,向井弘凪的罪与罚)", |
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 "fmt" | |
import "time" | |
import "runtime" | |
func counter(name string){ | |
for n:=0;n<20;{ | |
n++ |
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
from collections import deque | |
import random | |
import pysnooper | |
# @pysnooper.snoop() | |
def sort(stack): | |
help = deque() | |
while len(stack) != 0: | |
tmp = stack.pop() | |
while len(help)>0 and help[-1] > tmp: |