Skip to content

Instantly share code, notes, and snippets.

💭
Spending most of my time on GitLab now.

Matias Meno enyo

💭
Spending most of my time on GitLab now.
View GitHub Profile
View main.dart
import 'dart:async';
Future foo() async {
print('foo() before delay');
await Future.delayed(Duration(milliseconds: 100));
print('foo() after delay');
}
void main() async {
@enyo
enyo / changelog.sh
Created May 27, 2015
Provides a list of commits in all given folders
View changelog.sh
#!/bin/bash [0/0]
repos=(api webserver dashboard paywall utils services)
echo
for repo in ${repos[*]}
do
cd $repo
git log --since=am --pretty="format:%Cgreen$repo%Creset/%s (%Cred%h%Creset)%+b" --no-merges --author=m@tias.me
View test.html
<label>
<span>Eine column</span>
<input type="text">
</label>
View gist:48fb254d3e3beed29d18

Ganz brandfrisch!

Fanfiction #4:

TRUE BLOOD

“Sookie und Bill haben Beziehungs-Clinche und reden ein wenig aneinander vorbei.”
Tragisches Stück in nur einem Akt.

[Bill sitzt im Flur auf der Treppe und starrt gebannt, müde und genervt in Richtung Eingangstür. Er ist sichtlich wegen etwas unruhig. Die Tür öffnet sich. Auftritt Sookie]

View example-service.dart
///
/// Generated file. Do not edit.
///
library generated_userService;
import "dart:async";
import "package:remote_services/client/client.dart";
import "proto/messages.dart";
class UserService extends Service {
View jquery-dropzone.js
// Get the template HTML and remove it from the doumenthe template HTML and remove it from the doument
var previewNode = document.querySelector("#template");
previewNode.id = "";
var previewTemplate = previewNode.parentNode.innerHTML;
previewNode.parentNode.removeChild(previewNode);
var myDropzone = new Dropzone(document.body, { // Make the whole body a dropzone
url: "/target-url", // Set the url
thumbnailWidth: 80,
thumbnailHeight: 80,
View jquery-dropzone.html
<!-- HTML heavily inspired by http://blueimp.github.io/jQuery-File-Upload/ -->
<div class="table table-striped" class="files" id="previews">
<div id="template" class="file-row">
<!-- This is used as the file preview template -->
<div>
<span class="preview"><img data-dz-thumbnail /></span>
</div>
<div>
<p class="name" data-dz-name></p>
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@enyo
enyo / package.json
Created Jan 5, 2014
gulp package.json
View package.json
{
"name": "project-tools"
, "version": "0.0.1-dev"
, "private": true
, "devDependencies": {
"gulp": "*",
"gulp-myth": "*"
}
}
@enyo
enyo / changelog.sh
Created Jul 3, 2013
Print changelog to use for Github releases. (Goes through all commits, and shows the one with a #changelog hashtag)
View changelog.sh
#!/bin/bash
#echo git log $1...$2 --pretty=format:'<li> <a href="http://github.com/jerel/<project>/commit/%H">view commit &bull;</a> %s</li> ' --reverse | grep "#changelog"
firstTag=$(git tag | tail -2 | head -1)
secondTag=$(git tag | tail -1)
cmd=$(basename $0)
if [ "$1" == "-h" ]
then
You can’t perform that action at this time.