Skip to content

Instantly share code, notes, and snippets.

View sbruchmann's full-sized avatar

Steffen Bruchmann sbruchmann

View GitHub Profile
@sbruchmann
sbruchmann / main.js
Last active August 29, 2015 14:03
Tutorial: Add a top-level menu entry at a specific position
define(function () {
"use strict";
var CommandManager = brackets.getModule("command/CommandManager"),
Commands = brackets.getModule("command/Commands"),
Menus = brackets.getModule("command/Menus");
var MY_COMMAND_ID = "PDFEXPORT";
function exportAsPDF() {
@sbruchmann
sbruchmann / main.js
Created July 13, 2014 14:35
Working with modal dialogs in Brackets extensions
define(function (require) {
"use strict";
var AppInit = brackets.getModule("utils/AppInit");
var DefaultDialogs = brackets.getModule("widgets/DefaultDialogs");
var Dialogs = brackets.getModule("widgets/Dialogs");
AppInit.appReady(function _onAppReady() {
var myDialog = Dialogs.showModalDialog(
DefaultDialogs.DIALOG_ID_INFO,
@sbruchmann
sbruchmann / split.css
Last active August 29, 2015 14:20 — forked from jpnelson/split.css
* {
box-sizing: border-box;
}
*::before,
*::after {
box-sizing: inherit;
}
.container {
@sbruchmann
sbruchmann / stdout.txt
Last active August 29, 2015 14:21
Mysterious npm ETIMEDOUT
$ npm --verbose --save install babel-core
npm info it worked if it ends with ok
npm verb cli [ 'node',
npm verb cli '/Users/sbruchmann/.npm-packages/bin/npm',
npm verb cli '--verbose',
npm verb cli '--save',
npm verb cli 'install',
npm verb cli 'babel-core' ]
npm info using [email protected]
npm info using [email protected]