Skip to content

Instantly share code, notes, and snippets.

@ruevaughn
ruevaughn / nclude.preload.js.map
Created Apr 3, 2020
rancher-pc was getting a 401 chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/include.preload.js.map
View nclude.preload.js.map
{
"version": 3,
"sources": ["webpack:///webpack/bootstrap d17606921aee48059210", "webpack:///./inject.preload.js", "webpack:///../adblock-betafish/alias/include.preload.js", "webpack:///./adblockpluscore/lib/content/elemHideEmulation.js", "webpack:///./adblockpluscore/lib/common.js", "webpack:///../adblock-betafish/picreplacement/contentscript-loader.js"],
"names": [],
"mappings": ";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,KAAK;QACL;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;QAEA;QACA;;;;;;;;;;;;;;;;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb;;AAEA;AACA;AACA;AACA;AACA,OAAO,IAAI;;AAEX;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,oCAAoC;AACpC;AACA,GAAG;AACH,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;A
@choco-bot
choco-bot / FilesSnapshot.xml
Created Apr 3, 2020
nrf-sdk v15.3.0 - Passed - Package Tests Results
View FilesSnapshot.xml
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\nrf-sdk\nrf-sdk.nupkg" checksum="0A1DCF37BD83A891B02209F6B5938BC4" />
<file path="C:\ProgramData\chocolatey\lib\nrf-sdk\nrf-sdk.nuspec" checksum="77A5C98E4D9176A5D547DE655846BADE" />
<file path="C:\ProgramData\chocolatey\lib\nrf-sdk\nRF5_SDK_15.3.0_59ac345.zip.txt" checksum="DA28C5D715AEAD92E205D42A94198F8D" />
<file path="C:\ProgramData\chocolatey\lib\nrf-sdk\tools\chocolateyinstall.ps1" checksum="2690ACE842A6F56B535DCDE298776A3A" />
<file path="C:\ProgramData\chocolatey\lib\nrf-sdk\tools\chocolateyuninstall.ps1" checksum="3AC14136CCC785C05C485C17F5076B39" />
<file path="C:\ProgramData\chocolatey\lib\nrf-sdk\tools\commonEnv.ps1" checksum="87AA8AE7B2C8A8A1BBF56CA345C8C909" />
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>ITALIAN PIZZA</title>
<style id="jsbin-css">
p{
font-size:20px;
View urls.py
from django.contrib import admin
from django.urls import path
from hello.views import home
from notes import views
from accounts import views as accounts_views # Avoiding conflict
urlpatterns = [
path('admin/', admin.site.urls),
path('', home, name='home'),
path('notes/', views.home, name='notes'),
path('signup/', accounts_views.sign_up,
@dgorodnichy
dgorodnichy / fake_medium.rb
Created Apr 3, 2020
Dependency injection example
View fake_medium.rb
module PostsSources
class FakeMedium
def initialize
@client = OpenStruct.new(
posts: [{
"title": "Liverpool FC",
...
}]
)
end
View asyncpromise.js
// adding the 'async' keyword in front of a function will make it asynchronous.
// JS will automatically turn the output into a Promise
async function sayHello(){
return 'Hello"
}
sayHello().then((response) => {
console.log(response) // expected output: 'Hello'
})
@ioanzicu
ioanzicu / Queue.c
Created Apr 3, 2020
Implementation of the Queue using Array.
View Queue.c
#include<stdio.h>
#include<stdlib.h>
struct Queue {
int size;
int front;
int rear;
int *Q;
};
View httpsSetupProxy.js
# Proxy to an HTTPS server using a PKCS12 client certificate
const fs = require('fs');
const { createProxyMiddleware } = require('http-proxy-middleware');
const apiProxy = createProxyMiddleware('/api', {
target: {
protocol: 'https:',
host: 'example.org',
port: 443,
pfx: fs.readFileSync('path/to/certificate.p12'),
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
You can’t perform that action at this time.