Skip to content

Instantly share code, notes, and snippets.

View jawache's full-sized avatar

Asim Hussain jawache

View GitHub Profile
@jawache
jawache / asim.yml
Created March 15, 2024 15:12
asim sample manifest file for IF workshop 03/24
name: My Manifest File
description: My First Manifest File 💚
aggregation:
metrics:
- 'carbon'
type: 'both'
initialize:
outputs: ['yaml', 'csv']
plugins:
group-by:
@jawache
jawache / asim-static.yml
Created March 15, 2024 15:10
asim-static sample IF manifest file for workshop 03/24
name: Asims Static Manifest File
description: Asims Static Manifest File
aggregation:
metrics:
- 'carbon'
type: 'both'
initialize:
outputs: ['yaml', 'csv']
plugins:
group-by:

Setup Instructions

  1. Join our [Slack]

This is the most important thing to do, join our [Slack]! All of the help and support for this workshop will be available through there.

Once you are in then join the channels #mojifier-2-workshop and #mojifier-2-help

  1. Install Docker
@jawache
jawache / main.ts
Last active May 7, 2018 12:54
AngularJS Migration Course Resources - Step 6
import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {UpgradeModule} from '@angular/upgrade/static';
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
@NgModule({
imports: [
BrowserModule,
UpgradeModule
]
@jawache
jawache / jasmine-html-matcher.ts
Created December 12, 2016 17:44
Attempt at making a jasmine matcher that matches some HTML with some expected HTML (kinda works)
import {html2json} from 'html2json';
import * as _ from "lodash";
import {minify} from 'html-minifier';
----
toHaveHtml: () => {
let failures = [];
class Failure {
Note
Hello
<html></html>
interface Human {
firstName: string;
lastName: string;
name?: Function;
isLate?(time: Date): Function;
}
class Person implements Human {
constructor(public firstName, public lastName) {
}
@jawache
jawache / typescriptcrashcourse_es6_arrow.js
Last active April 5, 2017 02:50
typescriptcrashcourse
let obj = {
name: "Asim",
sayLater: function() {
// this...
setTimeout(() => console.log(`${this.name}`), 1000)
}
};
obj.sayLater();
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.2.4.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="http://www.parsecdn.com/js/parse-latest.js"></script>
</head>
<body>
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from bottle import route, run, Bottle, HTTPResponse, error, static_file
from bottle import response, request
import json
import time
from sys import argv