I hereby claim:
- I am jaredcnance on github.
- I am jaredcnance (https://keybase.io/jaredcnance) on keybase.
- I have a public key ASB4qEECbSmNrElO02tVHwUkuvXDl6ba9BCJf1bKri_QAAo
To claim this, I am signing this object:
// event-bus.js | |
// this is an EmberJS service, compatible and tested with Ember 2.3.1 | |
// manages the EventSource for the entire application | |
import Ember from 'ember'; | |
// TODO: add a method to remove a channel or handler from _openChannels | |
export default Ember.Service.extend({ | |
store: Ember.inject.service(), |
#!/bin/bash | |
arrayContains () { | |
local array="$1[@]" | |
local seeking=$2 | |
local index=-1 | |
for element in "${!array}"; do | |
index=$((index + 1)) | |
if [[ $element == $seeking ]]; then | |
echo $index |
{ | |
"window.zoomLevel": -2, | |
//"terminal.integrated.fontFamily": "Meslo LG M DZ for Powerline", // mac only | |
"workbench.iconTheme": "vscode-icons", | |
"workbench.colorTheme": "Material Palenight", | |
"editor.codeLens": true, | |
"window.zoomLevel": -1, | |
"editor.renderWhitespace": "boundary", | |
"search.exclude": { | |
"**/node_modules": true, |
I hereby claim:
To claim this, I am signing this object:
Copyright (c) 2017 Jared Nance | |
MIT License | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to |
internal class FunctionRunner | |
{ | |
private static readonly string FuncExePath = GetPath(Environment.SpecialFolder.ApplicationData, "npm\\node_modules\\azure-functions-core-tools\\bin\\func.exe"); | |
private readonly string _functionDirectory; | |
private readonly int _timeouteSeconds; | |
public FunctionRunner( | |
string relativeFunctionDirectory, | |
int timeoutSeconds = 15) | |
{ |
#!/bin/sh | |
# | |
# This is a pre-commit script that will automatically ensure any new .csproj files | |
# have been added to the AllProjects solution. AllProjects the solution used on the build | |
# server and must be kept up to date. | |
# | |
# This will fail if you do not have VS 2017+ or the dotnet-cli installed. | |
solution="AllProjects.sln" |
import Identifiable from '../../models/Identifiable'; | |
import Error from 'models/Error'; | |
import Client from '../Client'; | |
const { fetch } = global as any; | |
class Model implements Identifiable { | |
id: number; | |
name: string = 'name'; | |
} |
import CancellablePromise from '../CancellablePromise'; | |
import Sleep from '../../../test/tools/Sleep'; | |
describe('CancellablePromise', () => { | |
it('can be awaited', async () => { | |
let completed = false; | |
let basePromise = new Promise(resolve => { | |
setTimeout(resolve, 200); | |
}).then(() => (completed = true)); |
$Total = Invoke-Command -ScriptBlock {netsh int ipv4 show dynamicport tcp} | |
$regex = new-object System.Text.RegularExpressions.Regex ('(Number of Ports : )(\d*)', [System.Text.RegularExpressions.RegexOptions]::MultiLine) | |
$Total = ($regex.Match($Total)).Groups[2].Value | |
$InUse = Invoke-Command -ScriptBlock {(netstat -an | ? {($_ -notmatch 'LISTENING')}).Count} | |
Write-Output “$InUse/$Total ports in use” |