Skip to content

Instantly share code, notes, and snippets.

View wagenet's full-sized avatar

Peter Wagenet wagenet

View GitHub Profile
@wagenet
wagenet / skylight_dlopen.c
Created October 7, 2016 14:08
Skylight gem dynamic loading code
#include "skylight_dlopen.h"
#include "dlfcn.h"
sky_main_fn sky_main = 0;
sky_init_fn sky_init = 0;
sky_hrtime_fn sky_hrtime = 0;
sky_instrumenter_new_fn sky_instrumenter_new = 0;
sky_instrumenter_start_fn sky_instrumenter_start = 0;
sky_instrumenter_stop_fn sky_instrumenter_stop = 0;
sky_instrumenter_submit_trace_fn sky_instrumenter_submit_trace = 0;
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
"use strict";
/**
* TODO:
* - Generate definitions for prototype extensions
* - Handle additional JSDoc properties (@param, @return)
* - Define types of arrays where possible
* - Review situations where multiple types are possible
* - Review var-args
* - JSDoc for classes and namespaces if supported
// This file is valid, if contrived.
// Without nested block comments, the middle alert will get run.
// With nested block comments it would not.
/*
Comment
/*
alert("Don't run this anymore.");
*/
alert("I'm in a double nested comment!");
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
values: null,
sum: Ember.computed.sum("values")
});
0.0.0.0 vendor/ember-cli/vendor-prefix.js:0 /* jshint ignore:start */ | /* jshint ignore:start */
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
0.0.1.0 vendor/ember-cli/vendor-prefix.js:1 |
0.0.1.0 vendor/ember-cli/vendor-prefix.js:2 window.EmberENV = {"LOG_STACKTRACE_ON_DEPRECATION":false,... |
0.0.1.0
import Stream from 'ember-cli-i18n/utils/stream';
import t from 'ember-cli-i18n/utils/t';
import Ember from 'ember';
// tHelper without the container and application dependencies, sigh...
function tHelper(params /*, hash, options, env */) {
var path = params.shift();
var stream = new Stream(function() {
return t(path, params);
16:22 error: cannot assign to immutable field `self.pos`
self.pos += 1;
^~~~~~~~~~~~~

Hello Again,

Peter reporting from Orange County, CA. In California news today, the state has implemented mandatory water usage restrictions. So far I think Portland is mostly avoiding the drought. If we run out of water then maybe finally I'll be forced to relocate. Anyway, we haven't run out yet, so I'll keep working from here :)

Agent Improvements

Today, I spent most of my time working on agent setup improvements.

Currently, when you run skylight setup for the first time, we save an authentication token to ~/.skylight and use that for future skylight setup calls. Unfortunately, we've had a few cases where a user with access to multiple accounts accidentally created an application on the wrong account. Furthermore, for those using authentication solutions like 1Password or LastPass, copying a password into the terminal can be slightly awkward.

app.registry.add('css', 'broccoli-compass', 'scss', {
toTree: function(tree, inputPath, outputPath, options) {
// broccoli-compass doesn't like leading slashes
if (inputPath[0] === '/') { inputPath = inputPath.slice(1); }
tree = mergeTrees([
tree,
'public'
], {
description: 'TreeMerger (stylesAndVendorAndPublic)'