Skip to content

Instantly share code, notes, and snippets.

View exander77's full-sized avatar

Alexander Weps exander77

View GitHub Profile
@exander77
exander77 / Doxyfile
Created November 30, 2021 12:36 — forked from sarnold/Doxyfile
Documenting JavaScript with Doxygen
FILTER_PATTERNS =*.js=doxygen.js
@exander77
exander77 / build_cross_gcc
Created November 12, 2021 10:47 — forked from preshing/build_cross_gcc
A shell script to download packages for, configure, build and install a GCC cross-compiler.
#! /bin/bash
set -e
trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG
trap 'echo FAILED COMMAND: $previous_command' EXIT
#-------------------------------------------------------------------------------------------
# This script will download packages for, configure, build and install a GCC cross-compiler.
# Customize the variables (INSTALL_PATH, TARGET, etc.) to your liking before running.
# If you get an error and need to resume the script from some point in the middle,
# just delete/comment the preceding lines before running it again.
@exander77
exander77 / index.html
Last active November 9, 2021 23:06
SIGTRAP after loadURL of text/html data URI
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'">
<meta http-equiv="X-Content-Security-Policy" content="default-src 'self'; script-src 'self'">
<title>Hello World!</title>
</head>
<body>
@exander77
exander77 / BasicERC20.sol
Created February 7, 2021 13:10 — forked from giladHaimov/BasicERC20.sol
Basic ERC20 implementation
pragma solidity ^0.4.19;
contract ERC20Basic {
string public constant name = "ERC20Basic";
string public constant symbol = "BSC";
uint8 public constant decimals = 18;
event Approval(address indexed tokenOwner, address indexed spender, uint tokens);
require ["include", "environment", "variables", "relational", "comparator-i;ascii-numeric", "spamtest"];
require ["fileinto", "imap4flags"];
# Stop processing for outbound emails
if address :all :comparator "i;unicode-casemap" :matches "From" ["username@protonmail.ch", "username@protonmail.com", "username@pm.me", #"username@example.com"] {
stop;
}
# Discard addresses where localpart is not 3
if not address :localpart :length "from" 3 {
//Solutions for https://gist.github.com/anonymous/d9c26e847c615e3fe8ca769bbe359611
//Nice
function New(){return Object};var Old=New();
//Nice 2
var Old=Function,New=function(){return Old};
//Nice 3
var X=function(){};X.__proto__=new X;function New(){return X};var Old=New();