Skip to content

Instantly share code, notes, and snippets.

View ardhinata's full-sized avatar

Ardhinata Juari ardhinata

  • Jakarta, Indonesia
View GitHub Profile
@ardhinata
ardhinata / gcc-warning.md
Last active October 24, 2017 08:15
C and C++ strict warning

How to make strict warning on gcc

C

-std=c11 -Wall -Wextra -fstrict-aliasing -fdiagnostics-show-option -pedantic -pedantic-errors -Wcast-align -Wcast-qual -Wdisabled-optimization -Wformat=2 -Wlogical-op -Wmissing-include-dirs -Wredundant-decls -Wshadow -Wstrict-overflow=5 -Wswitch-default -Wundef -Wunused -Wvariadic-macros -Wparentheses

C++

-std=c++11 -Wall -Wextra -Wstrict-aliasing -pedantic -Wunreachable-code -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wdisabled-optimization -Wformat=2 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wnoexcept -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-promo -Wstrict-null-sentinel -Wstrict-overflow=5 -Wswitch-default -Wundef -fdiagnostics-show-option
@ardhinata
ardhinata / challenge.java
Last active March 25, 2017 08:37
Increased boundary
package testjava;
import java.math.BigInteger;
import java.util.ArrayList;
public class TestJava {
/**
@ardhinata
ardhinata / 0xD1FE8249 pub.asc
Created April 9, 2016 13:22
My PGP public key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2
mQINBFcGO8wBEACu1FlraOSFJfIkEEmAPgp9s3tws8K6J571asomnF6ul451GVLj
Jc/6tRD8tsj/OlGA3BQRUYhUWJKgv5JCWn4eyhIBxuXNQBydex6XMllNcFJeV6B6
VzOVZ8c1Z/og/wjPHN8Gwe/9ut6fxEGPdWfqSKHD6m+hSNxuZ51FRqfgMPahkrQc
bhu9peQ+iOTjNISbDxwG2IsyGyAek4Qh4b7dzbu3mS4jCckTlSa1RGX3CjlLaCyL
T2mV/EfYgB1H+xyzfAgNZOnzST1WaOmOXxBy9szdBtDYDsMP2FCtEvx8fabNZ1dn
AlVMECBLbSS3ui+5XiXWybvpChbcJcWvSXFNNQAtL2w30YNF9GKzMTb9uxoA+usb
jNvAszT/K/kW9byu+AKIWfgWUi8N8BCzaJnszMGe1856ny1tVU/wNDMDzYcipMH3