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
namespace ConsoleApplication4 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var playlist = new List<string>{ @"c:\development\test\sound.MP3", | |
@"c:\development\test\sound2.MP3" }; | |
var playr = new playr(playlist); |
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
import { renderHook } from '@testing-library/react-hooks'; | |
import useInterval from './useInterval'; | |
describe('useInterval', () => { | |
beforeEach(() => { | |
jest.clearAllMocks(); | |
jest.useFakeTimers(); | |
}); | |
it('should run the callback after the delay', () => { |
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
import { | |
useHistory, | |
useLocation | |
} from 'react-router-dom'; | |
import queryString from 'query-string'; | |
import { renderHook } from '@testing-library/react-hooks'; | |
import useQueryStringState from './useQueryStringState'; | |
const mockHistory = { push: jest.fn() }; |
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
function timeout(ms = 1000) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} |
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
### Keybase proof | |
I hereby claim: | |
* I am osbornm on github. | |
* I am osbornm (https://keybase.io/osbornm) on keybase. | |
* I have a public key whose fingerprint is 8BD9 6E8E FDFC 2468 BE9C E904 71E8 E463 8BA3 B85E | |
To claim this, I am signing this object: |
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
/** | |
* @fileoverview Disallow the use of Array.From() | |
*/ | |
"use strict"; | |
//------------------------------------------------------------------------------ | |
// Rule Definition | |
//------------------------------------------------------------------------------ |
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
<script type="text/x-handlebars-template" id="tree-layout-group"> | |
<li> | |
<div class="tree-row tree-row-header" data-bind="click: $root.toggleTreeNode"> | |
<div class="tree-row-left"> | |
<hgroup> | |
<h2><i class="{{groupIconClass}}"></i>{{name}}</h2> | |
<h3>({{serverCount}})</h3> | |
</hgroup> | |
</div> | |
<div class="tree-row-right"> |
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
<i class="loading-wave"></i> |
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 model = ko.trackableObservable(value); | |
$(".cancel").click(function(){ | |
model.reset(); | |
}); |
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
<!-- Simple Binding --> | |
<input type="submit" value="OK" data-bind='widget: "button"' /> | |
<!-- Complex Binding with options --> | |
<input id='search' data-bind='widget: { name: "autocomplete", options: { source: searchCompletions(), delay: 500 } }, value: searchString' /> |
NewerOlder