Things I should probably get around to reading
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
diff --git a/fetch.js b/fetch.js | |
index f894066798bb1e429c2d2f07d1964371df58e91f..ae7d5ac0554c86203b0eaf5ba004a1ab43e818a9 100644 | |
--- a/fetch.js | |
+++ b/fetch.js | |
@@ -2,8 +2,8 @@ | |
Object.defineProperty(exports, '__esModule', { value: true }); | |
-var router = require('./router.cjs'); | |
-var types = require('./types.cjs'); |
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
/* | |
Attempt to guess which <script src=""> tag loaded the current file. | |
If the file was loaded as a chunk by Webpack, try and find the webpack root. | |
*/ | |
function guessCurrentScript() { | |
var err = new Error(); | |
Error.stackTraceLimit = 100; | |
var stack = err.stack; |
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
const cryptoLib = window.crypto || window.msCrypto; | |
const uuidv4 = () => { | |
if (!cryptoLib || !Uint8Array) { | |
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => { | |
const r = Math.random() * 16 | 0; | |
const v = c === 'x' ? r : (r & 0x3 | 0x8); | |
return v.toString(16); | |
}); | |
} |
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
<style> | |
/* Prevent google maps from overlapping the contact form on mobile */ | |
@media (max-width: 500px) { | |
#ContactUs_form > :first-child, | |
#page-content > :first-child { | |
min-width: 100% !important; | |
float: none; | |
} | |
} | |
</style> |
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
alias g="git" | |
alias ga="git add" | |
alias gb="git branch" | |
alias gba="git branch -a" | |
alias gbd="git branch -d" | |
alias gbdr="git push origin --delete" | |
alias gc="git commit" | |
alias gca="git commit -a" | |
alias gch="git checkout" | |
alias gl="git log --pretty=format:'%Cred%h%Creset %s %Cgreen(%cr)%Creset %Cblue[%an]%Creset' --date=relative" |
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
const getGetRowCounts = (connection) => { | |
return (item) => { | |
return connection.query('SELECT * from foo'); | |
}; | |
}; | |
// Later on.. |
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
const mapStoreToRoutes = (routes, store) => { | |
return routes && routes.map(route => { | |
return { | |
...route, | |
indexRoute: route.indexRoute && { | |
...route.indexRoute, | |
onEnter: route.indexRoute.onEnter && function mappedIndexOnEnter(nextState, replaceState, next) { | |
route.indexRoute.onEnter(store.dispatch, store.getState(), nextState, replaceState, next); | |
}, | |
}, |
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
{% overextends "wagtailadmin/pages/edit.html" %} | |
{% load i18n %} | |
{% load wagtailadmin_tags %} | |
{# Put this in core/templateswagtailadmin/pages/edit.html. Assumes overextends. #} | |
{% block extra_js %} | |
{% include "wagtailadmin/pages/_editor_js.html" %} | |
<script> |
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
/* ========================================================================== *\ | |
Wagtail Admin CSS overrides | |
\* ========================================================================== */ | |
/* ------------------------------ *\ | |
Layout: full width admin | |
\* ------------------------------ */ | |
.wrapper { | |
max-width: 100% !important; |
NewerOlder