Skip to content

Instantly share code, notes, and snippets.

View handicraftsman's full-sized avatar
🖥️

Nickolay handicraftsman

🖥️
View GitHub Profile
@handicraftsman
handicraftsman / cleverbotserv.py
Created January 12, 2017 12:14
Simple CleverBot API.
#!/usr/bin/env python3
# Requires `cleverbot` and `flask` pip packages
# To send message, send POST request with msg=<message>
# You'll receive answer in response body
from cleverbot import Cleverbot
from flask import Flask, redirect, url_for, request
app = Flask(__name__)
cb = Cleverbot()
@handicraftsman
handicraftsman / obfuscated_facer.rb
Created January 5, 2017 21:35
Just messing with manual obfuscation
=begin
# Unobfuscated code:
s="-^v><*$-".each_char.take 8;loop{print " #{s.sample}_#{s.sample} ";sleep 0.1;print "\r"}
=end
# Obfuscated code:
eval( "" +
"\u0064\u003D\u0022\u0030" +
"\u0030\u0037\u0033\u0030" +
"\u0030\u0033\u0044\u0030" +
//You can also change type of this function to any other (if you need)
class ClassMisc {
public static string[] str_arr_cmb(string[] a, string[] b){
string[] output = {};
int cnt = 0;
foreach(string i in a){
output += a[cnt];
cnt++;
@handicraftsman
handicraftsman / help.md
Last active December 16, 2015 21:10
Basic window class in Vala (GTK3)

Construct it as object

Run it with .show_all()

@handicraftsman
handicraftsman / help.md
Last active December 16, 2015 21:15
Stack in C++
  1. Inheirt stack for using in code. It's not object
  2. To add string to stack, use void push(string in)
  3. To remove and get latest element from stack, use string pop()
  4. To check stack with number 'in', use string peek(int in)
  5. To empry stack, use void empty()
  6. To flush stack to stdout, use void flush()