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
export type TronxHandler = () => void | |
interface TronxStore { | |
value: any, | |
handlers: Set<TronxHandler> | |
} | |
class TronxTable { | |
propertyMap = new Map<object, Map<PropertyKey, TronxStore>>() | |
refMap = new Map<object, TronxStore>() |
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 { DetailedHTMLProps, HTMLAttributes, InputHTMLAttributes } from 'react' | |
import * as React from 'react' | |
import classNames from 'classnames' | |
export type NamedComponentsProps<A extends HTMLAttributes<E>, E extends Element> = DetailedHTMLProps<A, E> & { | |
innerRef?: (ref: E) => void | |
flags?: { [key: string]: boolean } | |
} | |
export type NamedComponentsMap<A extends HTMLAttributes<E>, E extends Element> = { |
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 * as React from 'react' | |
import { MouseEvent, CSSProperties } from 'react' | |
import styled from 'styled-components' | |
export interface IPLIconProps { | |
size?: number | |
color?: string | |
hoverColor?: string | |
opacity?: number | |
style?: CSSProperties |
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 { ipcMain, ipcRenderer, WebContents } from 'electron' | |
import { autorun, toJS } from 'mobx' | |
import { PLStore } from './PLStore' | |
enum SynxActionType { | |
Subscribe, | |
Update | |
} | |
interface ISynxAction { |
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 { app } from 'electron' | |
import path from 'path' | |
import fs from 'fs' | |
import { promisify } from 'util' | |
interface TargetKeyPair { | |
target: any, | |
key: PropertyKey | |
} |
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
jqTag = document.createElement('script') | |
jqTag.setAttribute("type","text/JavaScript") | |
jqTag.setAttribute("src", 'https://cdn.bootcss.com/jquery/3.2.1/jquery.js') | |
document.getElementsByTagName("head")[0].appendChild(jqTag) | |
fuckers = $('body').find('iframe').eq(0).contents().find('.del') | |
deleter = (index) => { | |
fuckers[index].click() | |
setTimeout(() => { | |
$('.qz_dialog_layer_btn.qz_dialog_layer_sub')[0].click() |
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
v += tableView => { v in | |
v~.backgroundColor = .clear | |
v.top = v.prev.top - 5 | |
v.bottom = v.parent.bottom | |
v.edgesX = v.parent.edgesX | |
v += self.refresher => { v in | |
v~.tintColor = .white | |
v~.addTarget(self, action: #selector(self.refresh), for: .valueChanged) |
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
package main | |
import ( | |
"syscall" | |
"unsafe" | |
"time" | |
) | |
var ( | |
kernel32Dll = syscall.NewLazyDLL("kernel32.dll") |