Skip to content

Instantly share code, notes, and snippets.

@joshbeckman
joshbeckman / classy.js
Created October 12, 2015 14:19
An example showing the difference between prototypal inheritance and raw object usage in JavaScript
function Foo(who) {
this.me = who;
}
Foo.prototype.identify = function() {
return "I am " + this.me;
};
function Bar(who) {
Foo.call(this,who);
@joshbeckman
joshbeckman / fbevents.js
Created May 27, 2016 21:31
Facebook's new Audience ad tracking script
/*1464382852,,JIT Construction: v2361294,en_US*/
/**
* Copyright Facebook Inc.
*
* Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*/
try {
(function(a, b, c, d) {
@joshbeckman
joshbeckman / faux-fountain.css
Created June 2, 2016 18:39
Transmute some hacky HTML markup conventions into screenplay display, inspired by http://fountain.io/_css/scrippets.css
body {
font-family: monospace;
max-width: 35rem;
margin: 0 auto;
display: block;
text-align: left !important;
}
h1,h2,h3,h4 {
/* used for characters */
text-align: center;
https://jvns.ca/atom.xml
http://sonniesedge.co.uk/feed.xml
https://eev.ee/feeds/blog.atom.xml
http://feeds.feedburner.com/turkeltaub
https://marco.org/rss2
https://daringfireball.net/feeds/main
http://www.evanmiller.org/news.xml
http://feeds.feedburner.com/codinghorror
http://feeds.feedburner.com/HighScalability
http://www.overcomingbias.com/feed
@VermeilChan
VermeilChan / compile-aseprite-win.md
Last active April 26, 2024 10:08
Compile Aseprite from source code for Windows 11/10 x64
@joshbeckman
joshbeckman / fbds.js
Created May 27, 2016 21:30
Facebook deprecated/ing (supposedly) adds script
/*1464382085,,JIT Construction: v2361294,en_US*/
/**
* Copyright Facebook Inc.
*
* Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*/
try {
(function(a, b, c, d) {
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="jdk" jdkName="Python 2.7.12 (C:\Program Files\Anaconda2\python.exe)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
<option name="projectConfiguration" value="Nosetests" />
<option name="PROJECT_TEST_RUNNER" value="Nosetests" />
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=1)}([function(e,t,n){"use strict";t.a={name:"shaker"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n.n(r),s=n(3);o.a.component("shaker",s.a)},function(e,t){e.exports=Vue},function(e,t,n){"use strict";var r=n(0),o=n(10);var s=function(e){n(4)},i=n(9)(r.a,o.a,!1,s,null,null);t.a=i.exports},function(e,t,n){var r=n(5);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(7)("6d3fe6b8",r,!0,{})},function(e,t,n){(e.exports=n(6)(!0)).push([e.i,"\n#app {\n font-family: 'Avenir', Helvetica, Arial, sans-seri
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=1)}([function(e,t,n){"use strict";t.a={name:"shaker"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n.n(r),s=n(3);o.a.component("shaker",s.a)},function(e,t){e.exports=Vue},function(e,t,n){"use strict";var r=n(0),o=n(10);var s=function(e){n(4)},i=n(9)(r.a,o.a,!1,s,null,null);t.a=i.exports},function(e,t,n){var r=n(5);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(7)("6d3fe6b8",r,!0,{})},function(e,t,n){(e.exports=n(6)(!0)).push([e.i,"\n#app {\n font-family: 'Avenir', Helvetica, Arial, sans-seri
@ethanclevenger91
ethanclevenger91 / after.sh
Last active April 26, 2024 10:05
Install PHP SQLSRV database extension on Laravel Homestead (probably works as a Laravel Forge recipe, too). Thanks @richvida
#!/bin/sh
PHP_MSSQL_DRIVERS=Ubuntu18-7.3
PHP_MSSQL_RELEASE=5.6.1
# Download and extract phpmysql drivers
sudo wget "https://github.com/Microsoft/msphpsql/releases/download/v${PHP_MSSQL_RELEASE}/${PHP_MSSQL_DRIVERS}.tar" -O - | tar -x
# Change Directory
cd $PHP_MSSQL_DRIVERS