This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Parent { | |
private readonly _child: Child; | |
constructor() { | |
// Make a DataDog counter and wrap the child's functions | |
this._child = new Child(); | |
const dataDogCounter = new DataDogCounter(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Starting OmniSharp server at 2018-5-8 21:30:56 | |
Target: /home/mwelke/MyAs | |
OmniSharp server started wth Mono | |
Path: /home/mwelke/.vscode/extensions/ms-vscode.csharp-1.14.0/.omnisharp/omnisharp/OmniSharp.exe | |
PID: 6048 | |
[info]: OmniSharp.Stdio.Host | |
Starting OmniSharp on arch 0.0 (x64) | |
[warn]: OmniSharp.MSBuild.Discovery.Providers.MonoInstanceProvider |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
events { | |
worker_connections 1024; | |
} | |
http { | |
client_max_body_size 10m; | |
server { | |
listen 80; | |
listen 443 ssl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var browserSync = require('browser-sync').create(); | |
// Static Server + watching css/html files | |
gulp.task('serve', ['css'], function() { | |
browserSync.init({ | |
proxy: "http://localhost:2368" | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdio.h" | |
int main(void) { | |
// Without arrays | |
int x = 0; | |
int y = 0; | |
// Input | |
printf("Give me the 1st number: "); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/nodejs | |
const axios = require('axios'); | |
let count = 0; | |
const uri = process.argv[2]; | |
console.log(`Starting with uri = ${uri}.`); | |
let timeBefore = undefined; | |
let timeAfter = undefined; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Started GET "/users" for 173.230.169.16 at 2017-03-01 02:54:26 +0000 | |
Cannot render console from 173.230.169.16! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 | |
Processing by UsersController#index as HTML | |
Rendering users/index.html.erb within layouts/application | |
Rendered users/index.html.erb within layouts/application (2.0ms) | |
Completed 200 OK in 17ms (Views: 16.0ms) | |
Started GET "/users" for 173.230.169.16 at 2017-03-01 02:54:26 +0000 | |
Cannot render console from 173.230.169.16! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Full repo: | |
# https://gitlab.com/mwelke/rails-async-example | |
Future = Concurrent::Future | |
class OperationController < ApplicationController | |
def sync | |
ops = [1, 2, 3] | |
ops.each do |n| |
NewerOlder