Skip to content

Instantly share code, notes, and snippets.

@jviereck
jviereck / hack.sh
Last active October 4, 2015 22:47 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#s
# install it:
# curl -sL https://raw.github.com/gist/<gist-number>/hack.sh | sh
#
@jviereck
jviereck / gist:1953505
Created March 1, 2012 21:56 — forked from brendandahl/gist:1953439
About Printing On The Web

Version: 01-Mar-2012
Author: Julian Viereck <jviereck (dot) dev (at) googlemail (dot) com>

About Printing On The Web

tl;dr

Printing on the web is very limited. There is CSS3 Paged Media "Last Call" spec, that improves things, but has not been adopted by browsers yet. How about creating a new "WebPrintAPI" that does not use the DOM but is more like a simple canvas API? Would such a simple API be helpful for your printing needs on the web, or is it just suitable for very special use cases like PDF.JS?

Please leave a comment - I would really like to get your feedback on this!

@jviereck
jviereck / gist:1953499
Created March 1, 2012 21:55 — forked from brendandahl/gist:1953439
About Printing On The Web

Version: 29-Feb-2012
Author: Julian Viereck <jviereck (dot) dev (at) googlemail (dot) com>

About Printing On The Web

tl;dr: Printing on the web is very limited. There is CSS3 Paged Media "Last Call" spec, that improves things, but has not been adopted by browsers yet. How about creating a new "WebPrintAPI" that does not use the DOM but is more like a simple canvas API? Would such a simple API be helpful for your printing needs on the web, or is it just suitable for very special use cases like PDF.JS?

About this document

This document is intended to sum up the current state of printing using the open web platform. It should serve as a foundation for discussion on how to get proper printing support added to the PDF.JS project (adding printing support is tracked here).

// Informatik - Serie 8 - Aufgabe 87
// Programm: frequencies.cpp
// Autor: Julian Viereck (Gruppe K)
#include<iostream>
#include<ios> // for std::noskipws
int main ()
{
char t;
// Informatik - Serie 8 - Skript-Aufgabe 81
// Program: inverse_matrix.cpp
// Invert a 3x3 matrix.
// Autor: Tim Menke Plestudent (Gruppe C)
#include <iostream>
int main()
{
// Initialization
"define metadata";
({
"description": "Provides the standard Bespin theme",
"provides": [
{
"ep": "editorTheme",
"name": "standard",
"description": "The standard Bespin theme",
"pointer": "#theme"
}

Filesystem

Overview

Filesystem is one of the core components of Bespin, providing high-level API for files / directory manipulations. It is a wrapper of FileSources a low-level files / directory access providers.

Filesystem API is exposed to the plugins through editorapp module's

diff -r 13a375950d95 plugins/supported/text_editor/commands/editing.js
--- a/plugins/supported/text_editor/commands/editing.js Fri Apr 09 14:57:19 2010 -0400
+++ b/plugins/supported/text_editor/commands/editing.js Sun Apr 11 16:38:46 2010 -0400
@@ -130,17 +130,39 @@ exports.openLine = function(env, args, r
newline(model, view);
};
exports.tab = function(env, args, request) {
var view = env.get('view');
var tabstop = settings.get('tabstop');
diff -r ee6fa26017e2 plugins/supported/Editor/views/text.js
--- a/plugins/supported/Editor/views/text.js Mon Mar 29 16:00:05 2010 +0100
+++ b/plugins/supported/Editor/views/text.js Mon Mar 29 17:07:48 2010 -0400
@@ -1087,16 +1087,17 @@ exports.TextView = CanvasView.extend(Mul
tab: function() {
var tabstop = settings.get('tabstop');
var count = tabstop - this._selectedRange.start.column % tabstop;
var str = "";
for (var i = 0; i < count; i++) {
"define metadata";
({
"dependencies": {
"Canon": "0.0"
},
"provides": [
{
"ep": "command",
"name": "vim"
},