Skip to content

Instantly share code, notes, and snippets.

View tovask's full-sized avatar

Levente Kováts tovask

View GitHub Profile
// this is my first code on github, what a fun!
// i found this code on pastebin: http://pastebin.com/F7QYajdu
// what do you guess it's doing
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(!![]+[])[!+[]+
<!DOCTYPE html><head></head><body><pre><?php
/*
* This is a login-with-google example, you should have credentials for use the api.
* This isn't store the access token, just retrieves the user information once for store or just display.
*/
require_once 'google-api-php-client/vendor/autoload.php';
$redirect_uri = 'http://127.0.0.1:3000/';
@tovask
tovask / jelek_2_hazi_2.js
Last active December 30, 2019 14:55
homework for signals & systems 2
function log(a){console.log(a);};log("\n\n--- start ---\n");
function printmatrix(m){
var ki="";
if( ( typeof m ) === "number" ){
return m;
}
ki+="{";
for(var i=0;i<m.length;i++){
ki+=(i==0?" ":", ");
if( ( typeof m[i] ) === "number" ){
<!--
Szempontok:
- ne befolyásolja az eredményt, hogy hányan vannak
- ha valakinek csak kevés pontja van, az ne húzza le csoportét
#mostvizsgázomjele2ből
#z-trafó
"""
Decode all QR-code images in a directory.
Dependencies:
sudo pip install pypng
sudo apt-get update
sudo apt-get install libzbar-dev
sudo pip install zbar
sudo pip install pillow
sudo pip install qrtools
"""
# acpi=off noapic
setterm -blength 0
echo "deb http://archive.debian.org/debian squeeze main" >> /etc/apt/sources.list
apt-get install gdm
startx
<?php
$form = array(
array(
'question' => 'First section', // title of the following section
'type' => 'section-header',
'hint' => '',
),
array(
'question' => 'Név',
<?php
// kill boolean
// dbcolumn keeped
if($_SERVER['REQUEST_METHOD']=='POST'){
header('Content-Type: text/plain; charset=utf-8');
$csv = $_POST['csv'];
$csv = trim($csv); // cut whitespaces
#include <stdio.h>
int main(){
int i,a=0;
for( i=0; i<3; i++){
if(i%3)
if(i%2)
printf("%d\n", (a = a+=2) );
else