See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
// C++11 scoped timer class and usage | |
// | |
// an example of RAII 'resource acquisition is initialisation' idiom | |
// build : g++ -Wall -std=c++11 -O5 -o scoped_timer scoped_timer.cpp | |
// | |
// on linux x64 resolution of timer seems to be microseconds [ on win/VC it may be much worse ] | |
// | |
// I like this approach as it doesnt litter your existing code with garbage, | |
// although there might be some inaccuracy due to stack setup/pulldown of the timer class itself | |
// |
Linux - create "Default (Linux).sublime-mousemap" in ~/.config/sublime-text-3/Packages/User | |
Mac - create "Default (OSX).sublime-mousemap" in ~/Library/Application Support/Sublime Text 3/Packages/User | |
Win - create "Default (Windows).sublime-mousemap" in %appdata%\Sublime Text 3\Packages\User | |
[ | |
{ | |
"button": "button1", | |
"count": 1, | |
"modifiers": ["ctrl"], | |
"press_command": "drag_select", |
route = 8.0.0.0/255.0.0.0 | |
route = 58.0.0.0/255.0.0.0 | |
route = 23.0.0.0/255.0.0.0 | |
route = 117.0.0.0/255.0.0.0 | |
route = 199.0.0.0/255.0.0.0 | |
route = 190.0.0.0/255.0.0.0 | |
route = 198.0.0.0/255.0.0.0 | |
route = 173.0.0.0/255.0.0.0 | |
route = 174.0.0.0/255.0.0.0 | |
route = 168.0.0.0/255.0.0.0 |
#utf-8 | |
require 'netaddr' | |
newfile = File.open("some_file", "w") | |
File.foreach('out_ip').with_index { |line, line_num| | |
line = line.split(',')[0].to_s | |
a = NetAddr::CIDR.create(line) | |
puts "#{a.ip}/#{a.wildcard_mask}" | |
newfile.write("route = #{a.ip}/#{a.wildcard_mask}\n") |
// This sample will guide you through elements of the F# language. | |
// | |
// ******************************************************************************************************* | |
// To execute the code in F# Interactive, highlight a section of code and press Alt-Enter in Windows or | |
// Ctrl-Enter Mac, or right-click and select "Send Selection to F# Interactive". | |
// You can open the F# Interactive Window from the "View" menu. | |
// ******************************************************************************************************* | |
// For more about F#, see: |
/* | |
* OJ中加速IO常用的代码片段 | |
* Author Jacob C | |
* THU_ID 2014010812 | |
*/ | |
//OJ中常用的头文件和预编译指令 | |
#ifndef _OJ_ | |
#define DEBUG | |
#endif |
Disclaimer: Modding the discord client is against Discord's term of service. I'm not responsible if any action is taken against you.
Modding the client will allow you to customize to:
This guide will explain how to inject js code into the discord client and send messages. I'm assuming you know you to write javascript code and are using Windows.
Restoring and protecting Java code is an old and often-discussed issue. Due to the byte-code format used to store Java class files, which contains a lot of meta-information, it can be easily restored to its original code. In order to protect Java code, the industry has adopted many methods, such as obfuscation, bytecode encryption, JNI protection, and so on. However, regardless of the method used, there are still ways and means to crack it.
Binary compilation has always been considered as a relatively effective method of code protection. Java's binary compilation is supported as AOT (Ahead of Time) technology, which means pre-compilation.
However, due to the dynamic nature of the Java language, binary compilation needs to handle issues such as reflection, dynamic proxy, JNI loading, etc., which poses many difficulties. Therefore, for a long time, there has been a lack of a mature, reliable, and adaptable tool for AOT compilation in Java that can be widely applied in p
import qrcode | |
from qrcode.util import * | |
def hack_put(self, num, length): | |
if num == 0: | |
num = 233 # make a fake length | |
for i in range(length): | |
self.put_bit(((num >> (length - i - 1)) & 1) == 1) | |
qrcode.util.BitBuffer.put = hack_put |