This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- @author Simon Symeonidis | |
-- A messy way to stop tasks. Define a global variable and have the loop bodies | |
-- for the tasks check that boolean variable if it is true or not, and continue | |
-- the looping or not, respectively. | |
with Ada.Text_IO; | |
procedure konky is | |
STOP_ANNOYING_PERSON : Boolean := False; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p \ | |
p p \ | |
p p p \ | |
p p p p \ | |
p p p p p \ | |
p p p p p p \ | |
p p p p p p p \ | |
p p p p p p p p \ | |
p p p p p p p p p \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* How to give children nightmares at night. | |
*/ | |
#include <stdio.h> | |
int func_a(int a, int b){ return a + b; } | |
int func_b(int a, int b){ return a - b; } | |
int func_c(int a, int b){ return a * b; } | |
int func_d(int a, int b){ return a / b; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Induced Paranoia | |
// @description They're out to get you. | |
// @version 1.0 | |
// ==/UserScript== | |
(function () | |
{ | |
var phrases = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
arr = [ | |
[:a, [1,2,2,2,2,1]], | |
[:b, [3,3,3,3,3,4,4,4]], | |
[:c, [8,8,8,8,8,8,8]]] | |
headers = arr.collect{|el| el[0]} | |
headers.each do |h| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Uri :: http://www.reddit.com/r/dailyprogrammer/comments/1g0tw1/ | |
# Author :: Simon Symeonidis | |
charbuff = [] | |
current_string, result = String.new, String.new | |
$stdin.gets.chomp!.chars do |c| | |
charbuff.push c unless charbuff.member? c | |
if charbuff.size > 2 | |
charbuff = charbuff.drop(1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Human { | |
attributes { | |
expirationDate : date; | |
} | |
operations { | |
breathe() : void; | |
} | |
} | |
/* You can comment in C/C++ ways too */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style type="text/css"> | |
.main{ | |
margin-top:50px; | |
margin-bottom:100px; | |
margin-left:auto; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.file "t.c" | |
.section .rodata | |
.LC0: | |
.string "%d\n" | |
.text | |
.globl main | |
.type main, @function | |
main: | |
.LFB0: | |
.cfi_startproc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [ -z $1 ] || [ -z $2 ] | |
then | |
echo "usage: ghclone username reponame"; | |
exit; | |
fi | |
git clone https://github.com/$1/$2.git |