A programming language consisting of 4 commands that translates to Brainfuck
bo: move upbO: move rightBo: move downBO: move right
| # Install the Python Requests library: | |
| # `pip install requests` | |
| import requests | |
| def light_candle(app_name, version, email="@"): | |
| # Cria Vela | |
| # POST http://www.velavirtual.com.br/asc/CriaVela.asp |
| import Cartography | |
| final class <#Name#>View: UIView { | |
| init() { | |
| super.init(frame: .zero) | |
| self.buildViews() | |
| } | |
| required init?(coder aDecoder: NSCoder) { |
| import requests | |
| from bs4 import BeautifulSoup | |
| all_symbols = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890" | |
| url = "http://protext.herokuapp.com/?text=" + all_symbols | |
| request = requests.get(url) | |
| parsed_html = BeautifulSoup(request.text, "html.parser") | |
| all_keys = list(all_symbols) | |
| all_values = list(parsed_html.find('h1').text) |
| import Foundation | |
| import PlaygroundSupport | |
| enum PromiseState<T> { | |
| case pending | |
| case fulfilled(T) | |
| case rejected(Error) | |
| var isPending: Bool { | |
| switch self { |
| //: Playground - noun: a place where people can play | |
| struct EqualsMultiple<T: Equatable> { | |
| let values: [T] | |
| } | |
| extension EqualsMultiple: ExpressibleByArrayLiteral { | |
| typealias ArrayLiteralElement = T | |
| init(arrayLiteral elements: T...) { |
| enum Year { | |
| noPadding = "y", | |
| twoDigits = "yy", | |
| fourDigits = "yyyy" | |
| } | |
| enum Quarter { | |
| number = "Q", | |
| zeroPaddedNumber = "QQ", | |
| qAndNumber = "QQQ", |
| from PIL import Image | |
| image = Image.open('img.png').convert("RGBA") | |
| pixels = image.getdata() | |
| new_pixels = list(map(lambda item: (255, 255, 255, 0) if item[0] < 250 and item[1] < 250 and item[2] < 250 else item, pixels)) | |
| image.putdata(new_pixels) | |
| image.save("img2.png", "PNG") |
| Object.prototype.toSafeProxy = function() { | |
| const getter = (target, name, receiver) => { | |
| const value = target[name] | |
| if (value == null) { | |
| return nullProxy(value) | |
| } else if (typeof value === 'object') { | |
| return value.toSafeProxy() | |
| } else if (typeof value === 'function') { | |
| return value |
| // The goal is to create all letters using only !, [], {}, (), + and typeof | |
| // Suggestions are welcome. | |
| // Let's decrease the sizes! | |
| // Big thanks to https://github.com/RedSparr0w, https://github.com/aemkei/jsfuck, and https://github.com/alcuadrado/hieroglyphy | |
| const js = { | |
| A: '(+![]+[][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]', | |
| B: '(+![]+(![ |