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
@ExceptionsEnum | |
public enum CommonExceptions { | |
/*public static final*/ NOT_FOUND /* = new CommonExceptions() */ /*enum*/ ; | |
public RuntimeException exceptions; | |
private CommonExceptions() { | |
super(); | |
} | |
private /*missing*/ CommonExceptions(Integer code, String message) { |
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
class testThread | |
: public QThread { | |
Q_OBJECT | |
public: | |
bool isLock = true; | |
void run() { | |
while (1) { | |
sleep(1); |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import json | |
from base64 import encodebytes | |
from datetime import datetime | |
from typing import Dict, Any | |
from urllib.parse import quote_plus | |
from Crypto.Hash import SHA256 | |
from Crypto.PublicKey import RSA |
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 json, random, rsa | |
def int_to_bytes(i: int): | |
return i.to_bytes(i.bit_length() + 7, 'big') | |
def bytes_to_int(b: bytes): | |
return int.from_bytes(b, 'big') | |
if __name__ == '__main__': |
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 axios from 'axios' | |
import * as qs from 'querystring' | |
import crypto from 'crypto' | |
import dayjs from 'dayjs' | |
import dotenv from '../dotenv.mjs' | |
/** | |
* @param {string} str | |
* @return {string} |
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 'vue-router' | |
declare module 'vue-router' { | |
interface RouteMeta { | |
title: string | |
need?: { | |
groups?: string[] | |
} | |
icon?: NodeRequire, | |
activeIcon?: NodeRequire |
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 lang=""> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width,initial-scale=1" /> | |
<link rel="icon" href="app://./favicon.ico" /> | |
<style> | |
div.icons { | |
z-index: 100000; |
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
const { utils, createPlugin } = require('stylelint') | |
const | |
parseSelector = require('stylelint/lib/utils/parseSelector'), | |
whitespaceChecker = require('stylelint/lib/utils/whitespaceChecker'), | |
isStandardSyntaxRule = require('stylelint/lib/utils/isStandardSyntaxRule') | |
const ruleName = 'in/selector-combinator-space-after' | |
const messages = utils.ruleMessages(ruleName, { | |
expected: combinator => `Expected single space after "${ combinator }"` | |
}) |
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 MockAdapter from 'axios-mock-adapter' | |
import { AxiosInstance } from 'axios' | |
import { expect, use } from 'chai' | |
import cap from 'chai-as-promised' | |
import { Api, attachApi } from '../src/api' | |
use(cap) | |
describe('Api', function () { |
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
type testA {} | |
func (*testA) funA() { | |
} |
OlderNewer