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
| data:text/html,<html contenteditable> | |
| data:text/html,<body contenteditable style="line-height:1.5;font-size:20px;"> | |
| from https://zserge.com/posts/awfice/ |
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
| Puts on glasses: | |
| (•_•) | |
| ( •_•)>⌐■-■ | |
| (⌐■_■) | |
| Takes off glasses ("mother of god..."): | |
| (⌐■_■) | |
| ( •_•)>⌐■-■ |
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 watchersPerScope = $('.ng-scope').map(function() { | |
| var s = $(this).scope(); | |
| if(s.$$destroyed) return 0; | |
| return (s.$$watchers || 0) && s.$$watchers.length; | |
| }).get(); | |
| var totalWatchers = 0; | |
| for(var i=0; i<watchersPerScope.length; i++) | |
| totalWatchers += watchersPerScope[i]; | |
| console.log(totalWatchers); |
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 jq = document.createElement('script'); | |
| jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"; | |
| document.getElementsByTagName('head')[0].appendChild(jq); | |
| setTimeout(function() { | |
| jQuery.noConflict(); | |
| console.log('jQuery loaded'); | |
| }, 1000); | |
| void(0); | |
| $('div.list div.list-card').sort(function(){ |
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
| $('div.list div.list-card').sort(function(){ | |
| return Math.random()*10 > 5 ? 1 : -1; | |
| }).each(function(){ | |
| var $t = $(this), | |
| color = $t.attr('class'); | |
| $t.css({backgroundColor: color}).appendTo( $t.parent() ); | |
| }); |
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
| jQuery.fn.jquery |
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 jq = document.createElement('script'); | |
| jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"; | |
| document.getElementsByTagName('head')[0].appendChild(jq); | |
| setTimeout(function() { | |
| jQuery.noConflict(); | |
| console.log('jQuery loaded'); | |
| }, 1000); | |
| void(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
| <div ng-app="muppetApp" class="container" ng-controller="muppetController"> | |
| <h1>Muppet Filter Test</h1> | |
| <ul class="list-unstyled list-inline"> | |
| <li>First set of muppets ({{muppetsResults.length}})</li> | |
| <li>Second set of muppets ({{moreMuppetsResults.length}})</li> | |
| </ul> | |
| <form class="form-group"> |
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
| { | |
| message: "The request is invalid.", | |
| messageDetail: "The parameters dictionary contains a null entry for parameter 'entityId' of non-nullable type 'System.Int32' for method 'Scio.Web.Models.Api.ActivityParticipations GetActivityParticipations(Int32)' in 'Scio.Web.Controllers.ActivityParticipationsController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter." | |
| } |
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
| // http://stackoverflow.com/questions/15801014/how-to-use-node-http-proxy-for-http-to-https-routing | |
| var httpProxy = require('http-proxy'); | |
| var options = { | |
| changeOrigin: true, | |
| target: { | |
| https: true | |
| } | |
| } |
NewerOlder