Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Frad LEE FradSer

🎯
Focusing
View GitHub Profile
anonymous
anonymous / ballot.sol
Created Jan 26, 2018
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.19+commit.c4cbbb05.js&optimize=false&gist=
View ballot.sol
pragma solidity ^0.4.19;
// ----------------------------------------------------------------------------
// 'MFIL' 'MineFIL Token' token contract
//
// Symbol : MFIL
// Name : MineFIL Token
// Total supply: 100,000,000.00
// Decimals : 2
//
@danielhavir
danielhavir / die_javascript.sh
Last active Jul 30, 2018
JavaScript Must Die!
View die_javascript.sh
### Removes Node and NPM from mac OS ###
# Uninstall using NPM
npm uninstall npm -g || echo "NPM uninstall didn't work"
# Try if Node's installed with Brew
(brew uninstall node&&brew prune)||echo "Node was not installed with Brew"
# Remove all files and folders including Node or NPM
rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*}
rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node* /usr/local/lib/dtrace/node.d ~/.npm ~/.node-gyp /opt/local/bin/node opt/local/include/node /opt/local/lib/node_modules
rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/npm*
rm -rf /usr/local/include/node*
@lxneng
lxneng / gist:435451
Created Jun 12, 2010
网站压力测试工具webbench
View gist:435451

Install

wget http://blog.s135.com/soft/linux/webbench/webbench-1.5.tar.gz
tar zxvf webbench-1.5.tar.gz
cd webbench-1.5
make && make install

Usage

webbench --help

@roddds
roddds / gist:a1f42bae598028ac7809
Last active Dec 8, 2020 — forked from raddevon/gist:67935d320ee9b726d19d
Adobe tries to strong-arm me into keeping Creative Cloud
View gist:a1f42bae598028ac7809

To everyone who got here through Twitter or Facebook or Hacker News or whatever: THIS IS NOT ME.

The "Me" in this transcript is @raddevon, who shared his story first on reddit.


List of incompetent jackasses who can't check a source if their lives depended on it:

@jasorod
jasorod / SVGPath.swift
Last active Jun 17, 2021 — forked from dotcypress/SVGPath.swift
SVG path to CGPath converter
View SVGPath.swift
//
// SVGPath.swift
// SVGPath
//
// Created by Tim Wood on 1/21/15.
// Updated by Vitaly Domnikov 10/6/2015
// Updated by Jason Rodriguez 08/29/2017
// Copyright (c) 2015 Tim Wood, Vitaly Domnikov, Jason Rodriguez. All rights reserved.
import Foundation
@dotcypress
dotcypress / SVGPath.swift
Last active Apr 3, 2022
SVG path to CGPath converter
View SVGPath.swift
//
// SVGPath.swift
// SVGPath
//
// Created by Tim Wood on 1/21/15.
// Updated by Vitaly Domnikov 10/6/2015
// Copyright (c) 2015 Tim Wood, Vitaly Domnikov. All rights reserved.
import Foundation
import CoreGraphics
@neilsmithdesign
neilsmithdesign / swift-ui-protocol-view-models.swift
Last active Oct 25, 2022
SwiftUI views with protocol interfaces to view models.
View swift-ui-protocol-view-models.swift
import SwiftUI
/// View model protocol
protocol ViewModel: ObservableObject {
var count: Int { get }
func increase()
}
/// Concrete implementation
class MyViewModel: ViewModel {
View metal_01_swiftui.swift
//
// ContentView.swift
// MetalSwiftUI
//
// Created by Zach Eriksen on 9/8/20.
// Copyright © 2020 oneleif. All rights reserved.
//
// Inspired [MetalUI](https://github.com/0xLeif/MetalUI)
import SwiftUI
View 现代汉语常用词表.txt
This file has been truncated, but you can view the full file.
阿爸 a1'ba4 18137
阿昌族 a1'chang1'zu2 50849
阿斗 a1'dou3 42632
阿飞 a1'fei1 48603
阿富汗 a1'fu4'han4 3461
阿訇 a1'hong1 34432
阿拉伯数字 a1'la1'bo2'shu4'zi4 35937
阿拉伯语 a1'la1'bo2'yu3 30476
阿妈 a1'ma1 16220
阿门 a1'men2 47913
@aa65535
aa65535 / aria2.bat
Last active Jan 31, 2023
Aria2的配置文件 & 启动脚本
View aria2.bat
:: 启动后需要保留窗口, 关闭窗口则结束进程
aria2c --conf-path=aria2.conf -D