This file contains 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
using Microsoft.CodeAnalysis; | |
using Microsoft.CodeAnalysis.CSharp; | |
using Microsoft.EntityFrameworkCore; | |
using Microsoft.EntityFrameworkCore.Design.Internal; | |
using Microsoft.EntityFrameworkCore.Infrastructure; | |
using Microsoft.EntityFrameworkCore.Metadata; | |
using Microsoft.EntityFrameworkCore.Migrations; | |
using Microsoft.EntityFrameworkCore.Migrations.Design; | |
using Microsoft.EntityFrameworkCore.Migrations.Operations; | |
using Microsoft.EntityFrameworkCore.Storage; |
This file contains 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
{"lastUpload":"2020-11-02T12:03:38.255Z","extensionVersion":"v3.4.3"} |
This file contains 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
/* This uses a modified version of puppeteer-to-istanbul and v8-to-istanbul */ | |
// There are a lot of diffs here but most of it is just prettier changes :( | |
// https://github.com/istanbuljs/puppeteer-to-istanbul/compare/master...Friss:master | |
// Mostly just converting it to handle the new async v8-to-istanbul code. Also fetches sourcemaps if availabile. | |
// https://github.com/istanbuljs/v8-to-istanbul/compare/source-maps...Friss:source-maps | |
// Tweaks to parse the path out to webpack files that I recreated based on the source maps. |
This file contains 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
{ | |
"tsx-test-filename": { | |
"prefix": "tsx-test-filename", | |
"body": [ | |
"${TM_FILENAME_BASE/^(.)|([.-](.))/${1:/upcase}${3:/upcase}/g}", | |
], | |
"description": "TSX filename" | |
}, | |
"tsx": { |
This file contains 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 events = (function(){ | |
function addRemove(op, events, cb){ | |
if( cb ) | |
events.split(' ').forEach(name => { | |
var ev = name.split('.')[0] | |
cb = cb || this._eventsNS[name] | |
this[op + 'EventListener'].call(this, ev, cb) | |
if(op == 'add') |
This file contains 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
//Some old math stuff I wrote when in Trig class | |
using System; | |
using System.IO; | |
public class Geometry | |
{ | |
//-----Area of a circle A= pi^2-------------------------------------------- | |
public static double Area_Circle(double radius) | |
{ | |
double area = 2*(Math.PI*(radius*radius)); |
This file contains 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
// use JSX with el instead of React.createElement | |
/** @jsx createElement */ | |
const Children = { | |
only(children) { | |
if (children.length > 1 || children.length === 0) { | |
throw new Error('The children must have only one element'); | |
} | |
return children[0]; | |
} |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using Microsoft.Win32.SafeHandles; | |
public static class CredentialManager | |
{ | |
public static Credential ReadCredential(string applicationName) |
This file contains 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 Sortable extends React.Component { | |
componentDidMount() { | |
// Every React component has a function that exposes the | |
// underlying DOM node that it is wrapping. We can use that | |
// DOM node, pass it to jQuery and initialize the plugin. | |
// You'll find that many jQuery plugins follow this same pattern | |
// and you'll be able to pass the component DOM node to jQuery | |
// and call the plugin function. |
This file contains 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
/** | |
* jQuery plugin template by https://github.com/publicJorn | |
* Features: | |
* - ES6 (So, it requires a build step to transpile to ES5 for most environments) | |
* - Dynamic plugin name (only supply once) so it's easy to change later | |
* - Plugin factory to make it work in the browser, or with AMD / COMMONJS modules | |
* - Plugin instance is saved on the selector element | |
* - Default options are saved to the instance in case you need to figure out a difference between passed options | |
*/ | |
(function(global, factory) { |
NewerOlder