Skip to content

Instantly share code, notes, and snippets.

View Haroenv's full-sized avatar

Haroen Viaene Haroenv

View GitHub Profile
@Haroenv
Haroenv / chat.md
Last active September 17, 2015 22:39
chat

What I want from a chat platform

  • push notifications
  • useable on mobile
    • viewport meta tag
  • one-time sign in
  • enter to send
  • open source
  • markdown
  • mentions
@Haroenv
Haroenv / sharing.sh
Last active August 29, 2015 14:21
Three functions to share images from the shell.
# command line file sharing #
# needed: a git repo on the gh-pages branch #
# usage: s <file> #
#############################################
function s {
red='\033[0;31m'
NC='\033[0m'
gitrepo="/Users/haroenviaene/git/s/"
site="http://haroen.me/s/"
@Haroenv
Haroenv / head.html
Last active November 22, 2024 16:39
html head
<html lang="en">
<head>
<title> Title of the Page </title>
<meta charset="utf-8" />
<!-- saying that the browser doesn't need to rescale on mobile -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<!-- status bar in transparent/colour -->
@Haroenv
Haroenv / new_repo.sh
Last active August 29, 2015 14:20
Bash function that creates a new repo
# new github repository #
# dependency: gem install hub #
# usage: new_repo <repo_name> #
# by @victormours #
###############################
function new_repo {
REPO_NAME=$1
if [ $REPO_NAME ]
then
mkdir $REPO_NAME
<snippet>
<content><![CDATA[<!DOCTYPE html>
<html lang="en">
<head>
<title> $1 </title>
<meta charset="utf-8" />
<script src="js/scripts.js"></script>
<link rel="stylesheet" src="css/styles.css">
</head>
<body>
import java.util.Scanner;
import java.util.Locale;
/**
* Via deze klasse kan je informatie van de gebruiker inlezen. Er zijn in deze klasse volgende statische methoden
* gedefinieerd:
* <ul>
* <li><tt>readString()</tt> voor het inlezen van een woord
* <li><tt>readLine()</tt> voor het inlezen van een lijn tekst
* <li><tt>readChar()</tt> voor het inlezen van een karakter