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
## output from 'apm test', after a previous 'apm test' run showed some 'F' but still gave 'Tests passed' | |
## this is only stderr. stdout was redirected on command line to a file, and is appended at the bottom | |
[3724:3748:0314/213441:VERBOSE1:crash_service_main.cc(68)] Session start. cmdline is [--reporter-url=http://54.249.141.255:1127/post --application-name=Atom --v=1] | |
[3724:3748:0314/213441:VERBOSE1:crash_service.cc(142)] window handle is 000C0666 | |
[3724:3748:0314/213441:VERBOSE1:crash_service.cc(290)] pipe name is \\.\pipe\Atom Crash Service | |
dumps at C:\Users\_My_User_\AppData\Local\Temp\Atom Crashes | |
[3724:3748:0314/213441:VERBOSE1:crash_service.cc(294)] checkpoint is C:\Users\_My_User_\AppData\Local\Temp\Atom Crashes\crash_checkpoint.txt | |
server is http://54.249.141.255:1127/post | |
maximum 128 reports/day |
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 NSpec; | |
using System; | |
namespace NSpecExecutionOrder | |
{ | |
abstract class parent_class : nspec // this can be either an abstract class, or just a class | |
{ | |
public const string parentPrefix = "parent: "; | |
public const string childPrefix = "\t\t child: "; | |
public const string methodPrefix = "\t\t\t\t method: "; |
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
MQTT Client is starting... | |
MQTT client connected | |
MQTT client subscribing to broker/someTopic... | |
subscribe granted: [ { topic: 'broker/someTopic', qos: 1 } ] | |
######################################### | |
MQTT client received message | |
* topic broker/someTopic | |
* message <Buffer 7b 22 66 69 65 6c 64 41 22 3a 22 61 22 2c 22 66 69 65 6c 64 42 22 3a 22 62 22 7d> |
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
// ... | |
/* Mixing WaveFileReader with MediaFoundationEncoder causes an exception. | |
* Stick with MediaFoundationReader when working with MediaFoundation namespace. | |
List<WaveFileReader> waveFileReaders = BuildTheReaderListFromPathNames(); | |
*/ | |
List<MediaFoundationReader> waveFileReaders = BuildTheReaderListFromPathNames(); | |
IWaveProvider joinedWaveProvider = buildProvider(waveFileReaders); |
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
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in WavToWma.Presentation.exe | |
Additional information: Eccezione da HRESULT: 0xC00D36B0 | |
in NAudio.MediaFoundation.MediaFoundationInterop.MFCreateSinkWriterFromURL(String pwszOutputURL, IMFByteStream pByteStream, IMFAttributes pAttributes, IMFSinkWriter& ppSinkWriter) | |
in NAudio.Wave.MediaFoundationEncoder.CreateSinkWriter(String outputFile) | |
in NAudio.Wave.MediaFoundationEncoder.Encode(String outputFile, IWaveProvider inputProvider) | |
in NAudio.Wave.MediaFoundationEncoder.EncodeToWma(IWaveProvider inputProvider, String outputFile, Int32 desiredBitRate) | |
... <the line invoking MediaFoundationEncoder.EncodeToWma> ... |
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 strict'; | |
exports.log = log; | |
exports.dir = dir; | |
const { components } = require('chrome'); | |
var consoleService = components.classes["@mozilla.org/consoleservice;1"] | |
.getService(components.interfaces.nsIConsoleService); |
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
<?php | |
class PeThemeShortcodeBrainCrumbzParallaxSeparator extends PeThemeShortcode { | |
/* | |
Syntax: | |
[parallax-sep imageurl="URL of parallax background image" | |
textcolor="font color code (optional)" | |
bgcolor="background color code (optional)" | |
padding_top="top padding (optional)" |
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
Reusing an AngularJS Directive core code. The idea is to: | |
** 1. conceal the actual directive behaviour in a separate JS "class", | |
** 2. store that in an Angular service, | |
** 3. inject that service into an Angular directive, | |
** 4. just have the directive factory function return the constructed instance of the "class". | |
That is to separate the directive core code from the actual directive factory. | |
Then one actually wants to inherit a directive core "class" from another. It's not really a matter of JS inheritance, but more on how to inject one into the other by means of Angular modules, without actually instantiating none of them until needed, |
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
// Define core directive code + attributes and store that as a module value | |
angular.module('com.namespace.directives').value('MyDirectiveCore', MyDirectiveCore); | |
function MyDirectiveCore($compile) { | |
this.restrict = 'A'; | |
this.priority = 10; | |
this.link = postLink; | |
return this; | |
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
Here is a simple jQuery plugin to make a table header fixed on top when window is scrolled. | |
Using the code from twitter bootstrap documentation page, this code is customized for table header. | |
Create the table with following layout - | |
<table class="table-fixed-header"> | |
<thead class="header"> | |
<tr> | |
<th>Column 1</th> | |
<th>Column 2</th> | |
<th>Column 3</th> |