Skip to content

Instantly share code, notes, and snippets.

View geekyme's full-sized avatar
💭
I code, a lot

Shawn Lim geekyme

💭
I code, a lot
View GitHub Profile

Our current Temporal dashboards, which uses Atlas Stack Language and Lumen.

There are two dashboards here:

  1. temporal-dash.json is our Temporal service dashboard. Each Temporal service is broken down into its own section with its own views.
  2. temporal-service-client.json is a reusable component that Temporal workers can include in their application dashboards which gives insight into the SDK.
  3. temporal-service-go.json reusable component for the Temporal services themselves to expose Go metrics.
  4. temporal-internal-client.json reusable component for each Temporal service's clients to other Temporal services. Just an overview.
@gaearon
gaearon / createAsyncPage.jsx
Last active April 25, 2023 09:06
Webpack's async code splitting with React Router
'use strict';
var React = require('react');
function createAsyncHandler(getHandlerAsync, displayName) {
var Handler = null;
return React.createClass({
displayName: displayName,
@staltz
staltz / introrx.md
Last active May 18, 2024 05:17
The introduction to Reactive Programming you've been missing
@coffeesam
coffeesam / studentTest.js
Created June 12, 2013 10:05
Sample Mocha test
var chai = require('chai');
var should = chai.should();
var studentHelper = require('studentHelperTest').TestSuite;
var Student = require('../src/schoolRecord.js').Student;
describe('Student', function() {
var student = new(Student);
@andreisebastianc
andreisebastianc / cometdconn.js
Created March 19, 2013 19:43
An approach on getting real time communication for backbone models without spamming channels for cometd. Can be easily updated to work for socket.io . Requires PubSub. The same approach can be used for sending information through channels.
//..
socket.subscribe('channel',function (data){
var data = JSON.parse(data.data);
// or you could search in a collection for the package you are looking for and handle the result
PubSub.publish('topic'+data.id, data);
});
@MoOx
MoOx / less2stylus.js
Created August 27, 2012 17:37 — forked from lancejpollard/less2stylus.coffee
Convert LESS to Stylus
// Usage : less2stylusDir('../src/css/');
var fs = require('fs');
// this less 2 stylus conversion script make a stylus easy to read syntax
// - let the braces
// - replace the @ for var as $
// - let semicolons
function less2stylus(less)