I hereby claim:
- I am catcarbon on github.
- I am zhayi (https://keybase.io/zhayi) on keybase.
- I have a public key ASB20NkFWsc8KWsyPXxYUEqniXhMPdxaDov8LeFKBHdgMQo
To claim this, I am signing this object:
import unittest | |
from collections import deque | |
from typing import List | |
def remove_subsequence_length(nums: List[int]) -> int: | |
""" | |
Remove the shortest non-descending subsequence in nums to make elements of nums unique. | |
:param nums: |
#define N 2000; | |
float a[N][N], b[N][N], c[N][N]; | |
void p2(int threads) { | |
int tid; | |
int block=100; // L1$ 12x32x1024, 4x32x1024 for each array, 32x1024 floats, about 181^2 | |
int i,j,k,ii,jj; | |
float temp[block]; | |
double sum,C,y,t; |
enable-ssh-support | |
pinentry-program /usr/local/bin/pinentry | |
default-cache-ttl 60 | |
max-cache-ttl 120 |
events = enumerate(events, None) | |
current = next(events) | |
for index, frame in enumerate(frames): | |
while current and current['frame_number'] == index: | |
# do something | |
current = next(events) | |
# do everything else |
{ | |
"name":"北京市", | |
"eng_name":"Beijing", | |
"id":"11" | |
} | |
{ | |
"name":"天津市", | |
"eng_name":"Tianjin", | |
"id":"12" | |
} |
<?php | |
// $this_omc = SELECT q_omc FROM queue ORDER BY q_omc ASC LIMIT 1 | |
// $uploader_uid = SELECT upload_uid FROM video WHERE id = $this_omc | |
// SELECT urel_from_id FROM user_rel WHERE urel_to_id = $uploader_uid | |
// foreach $res as $item: | |
// INSERT INTO push (push_uid, push_omc) VALUES($item["urel_from_id"], $this_omc) | |
include '../config.php'; | |
include '../SQLModel.php'; |
I hereby claim:
To claim this, I am signing this object:
import codecs | |
import subprocess, os, sys | |
cue_file = sys.argv[1] | |
d = codecs.open(cue_file, 'r', 'gbk') | |
sys.stdout = codecs.getwriter('utf-8')(sys.stdout) | |
general = {} | |
tracks = [] | |
current_file = None |
# Licensed under DON'T BE A DICK PUBLIC LICENSE | |
# A full description of the license is available at http://www.dbad-license.org/ | |
# by catcarbon, Jan 6 2016: v2 | |
import sys, os | |
# Why would you do this? | |
invalid_ext = ['.py', '.cst'] | |
if len(sys.argv) != 2 or re.match('^.\w+$', sys.argv[1]) is None or sys.argv[1] in invalid_ext: |