Skip to content

Instantly share code, notes, and snippets.

View VojtechBartos's full-sized avatar
🏠
Working from home

Vojta Bartoš VojtechBartos

🏠
Working from home
View GitHub Profile
### Keybase proof
I hereby claim:
* I am VojtechBartos on github.
* I am vojtechbartos (https://keybase.io/vojtechbartos) on keybase.
* I have a public key whose fingerprint is 4D36 332B C160 4A43 5185 905A 7D88 23A9 4717 D485
To claim this, I am signing this object:
# -*- coding: utf-8 -*-
#
# Dependencies
# apt-get install libmysqlclient-dev python python-dev python-mysqldb
#
# Example
# python gld.py --help
#
import argparse
// .babelrc
{
"plugins": [
"transform-es3-member-expression-literals",
"transform-es3-property-literals",
"transform-object-rest-spread",
"transform-class-properties",
"add-module-exports"
],
"presets": [
{
"meta": {},
"data": [
{
"title": "Sleep Diary",
"orientation": "landscape",
"reference": "onboarding",
"phrases": [
{
"start": 0,
@VojtechBartos
VojtechBartos / index.html
Last active August 29, 2015 14:15
Branch.IO
<html>
<head>
<title>Branch IO test</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript">
(function() {
var config = {
app_id: '<app_id>',
myApp = angular.module 'myApp', []
myApp.service 'FlashMessage', ($rootScope) ->
smsgw.service 'FlashMessage', ($rootScope) ->
Flash = () ->
$rootScope.flashes = []
$rootScope.$on '$routeChangeSuccess', () ->
flashes = []
for flash in $rootScope.flashes
@VojtechBartos
VojtechBartos / delete.php
Created November 10, 2012 15:59 — forked from hrach/delete.php
Rekurzivní smazání adresáře v Nette
<?php
$dirContent = Finder::find('*')->from($directory)->childFirst();
foreach ($dirContent as $file) {
if ($file->isDir())
@rmdir($file->getPathname());
else
@unlink($file->getPathname());
}