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
| function setCharAt(str,index,chr) { | |
| if(index > str.length-1) return str; | |
| return str.substr(0,index) + chr + str.substr(index+1); | |
| } | |
| function incString(n, pos) { | |
| if(!pos) {pos = 0}; |
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
| REPORTER = dot | |
| test: | |
| @NODE_ENV=test ./node_modules/.bin/mocha \ | |
| --reporter $(REPORTER) \ | |
| test-w: | |
| @NODE_ENV=test ./node_modules/.bin/mocha \ | |
| --reporter $(REPORTER) \ | |
| --growl \ |
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
| protected function errorsToNotification(Illuminate\Support\MessageBag $errors) | |
| { | |
| if($errors && $errors->has()){ | |
| Notification::container(null, function($container) use ($errors) | |
| { | |
| foreach ($errors->all() as $error) | |
| { | |
| $container->error($error); | |
| } | |
| }); |
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
| const people = ["TT", "ME", "FE", "TR", "JE", "DE", "AD"]; | |
| Array.prototype.group = group; | |
| function group(size = 2, sizingFunc) { | |
| const tmp = this.slice(); | |
| const output = []; | |
| while(tmp.length) { | |
| const groupSize = sizingFunc(tmp.length, size); |
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
| public class Startup | |
| { | |
| private Container container = new SimpleInjector.Container(); | |
| public Startup(IHostingEnvironment env) { | |
| // ASP.NET default stuff here | |
| } | |
| // This method gets called by the runtime. | |
| public void ConfigureServices(IServiceCollection services) { | |
| // ASP.NET default stuff here |
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 Fake lib | |
| #r @"packages/FAKE/tools/FakeLib.dll" | |
| #r @"System.Xml.Linq" | |
| open Fake | |
| open System | |
| open System.IO | |
| open System.Xml.Linq | |
| open Fake.DotCover | |
| open Fake.NuGet |
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 consoleLine = "<p class=\"console-line\"></p>"; | |
| console = { | |
| log: function (text) { | |
| $("#console-log").append($(consoleLine).html(text)); | |
| } | |
| }; | |
| // New function called compose | |
| // works from right to left |
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
| using System.Web.Http; | |
| using NUnit.Framework; | |
| using PF.Presentation.Api.Extensions.ContainerExtensions; | |
| using SimpleInjector; | |
| namespace PF.Presentation.Api.UnitTests.Extensions | |
| { | |
| [TestFixture] | |
| public class VerifyContainer | |
| { |
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
| public const string FailedMessageResponderNotResponding = "No failed message response defined for {0}"; | |
| public const string FailedMessageResponderResponding = "Creating {0} for failed message {1}"; |
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
| <Head> | |
| <script dangerouslySetInnerHTML={{ __html: ` | |
| var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="4.0.0"; | |
OlderNewer