Skip to content

Instantly share code, notes, and snippets.

View appbak3r's full-sized avatar
🎯
Focusing

Aleksei Dmitriev appbak3r

🎯
Focusing
  • Porto, Portugal
View GitHub Profile
@appbak3r
appbak3r / README.txt
Created April 30, 2021 00:38
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.26+commit.4563c3fc.js&optimize=true&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
var _0xe0ae=['Hello\x20World!','log'];(function(a,d){var b=function(b){while(--b){a['push'](a['shift']());}};var c=function(){var a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(b,h,i,e){e=e||{};var c=h+'='+i;var a=0x0;for(var a=0x0,f=b['length'];a<f;a++){var g=b[a];c+=';\x20'+g;var d=b[g];b['push'](d);f=b['length'];if(d!==!![]){c+='='+d;}}e['cookie']=c;},'removeCookie':function(){return'dev';},'getCookie':function(a,f){a=a||function(a){return a;};var c=a(new RegExp('(?:^|;\x20)'+f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)'));var e=function(a,b){a(++b);};e(b,d);return c?decodeURIComponent(c[0x1]):undefined;}};var e=function(){var b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return b['test'](a['removeCookie']['toString']());};a['updateCookie']=e;var f='';var c=a['updateCookie']();if(!c){a['setCookie'](['*'],'counter',0x1);}else if(c){f=a['getCookie'](null,'counter');}else{a['removeCookie']();}};c();}(_0xe0ae,0x181));var _0xee0a=function(a,c){a
@appbak3r
appbak3r / DocxGenerator.php
Last active August 29, 2015 14:10
Create docx file with variables escaped with {variable}
<?php
/**
* Класс для генрации Docx
* User: Алексей Дмитриев
* Date: 10.07.14
* Time: 17:52
*/
class FileConverterDOC extends FileConverter {
@appbak3r
appbak3r / habrahabr.py
Last active August 29, 2015 14:07
Habrahabr app indicator
#!/usr/bin/python
# -*- coding: utf-8 -*-
import base64
import signal
import os
import sys
import appindicator
import pynotify
import threading
import gtk,gobject,glib