Skip to content

Instantly share code, notes, and snippets.

💭
profiting off the free labor of coders past... no wait company is not interested

Devin Rhode devinrhode2

💭
profiting off the free labor of coders past... no wait company is not interested
Block or report user

Report or block devinrhode2

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View force-globals-require.js
/** vim: et:ts=4:sw=4:sts=4
* @license RequireJS 2.3.6 Copyright jQuery Foundation and other contributors.
* Released under MIT license, https://github.com/requirejs/requirejs/blob/master/LICENSE
*/
//Not using strict: uneven strict support in browsers, #392, and causes
//problems with requirejs.exec()/transpiler plugins that may not be strict.
/*jslint regexp: true, nomen: true, sloppy: true */
/*global window, navigator, document, importScripts, setTimeout, opera */
(function(){
View performance musings.md

Would anyone be willing to share some performance numbers of an Ember build of the open source Ghost-Admin project in WSL and/or mac, in addition to how much RAM/CPU you have on each machine?

If you really want to go the extra mile and pair your numbers with some disk read/write : What are your disk read/write speeds measure as, and what your cpu speeds measure as, and consequently how fast ember server rebuilds the app.

I happen to be looking for a new machine myself, been meaning to visit a windows store and try convincing someone to let me setup ember with ghost and time the performance of it. I will try adding the windows defender exceptions mentioned above, and there's this other trick to increasing the write speed on windows (something about disabling write cache buffering, which makes it so you can potentially lose data in the lost of a sudden lose of power). Benchmarking the CPU with Geekbench and measuring the read/write speeds with one of these tools htt

@devinrhode2
devinrhode2 / binaryUtil.js
Created Jan 10, 2018 — forked from belohlavek/binaryUtil.js
ASCII to Binary and Binary to ASCII Utility functions in Javascript.
View binaryUtil.js
var Util = {
toBinary: function(input) {
var result = "";
for (var i = 0; i < input.length; i++) {
var bin = input[i].charCodeAt().toString(2);
result += Array(8 - bin.length + 1).join("0") + bin;
}
return result;
},
@devinrhode2
devinrhode2 / README.md
Last active Nov 27, 2019 — forked from tombigel/README.md
How to Change Open Files Limit on OS X and macOS Sierra (10.8 - 10.12)
View README.md

How to Change Open Files Limit on OS X and macOS

This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x

The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine https://web.archive.org/web/20170523131633/https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/

Mac OS X

To check the current limits on your Mac OS X system, run:

View Google Analytics.js Outbound Link Tracking.js
View gist:9dde25f66a8adeae72f36eee5c712271
assertEqual: function(actual, expected) {
// Uses TraceKit to get stacktrace of caller,
// it looks for the line number of the first anonymous eval
// Stack traces are pretty nasty and not standardized yet
// so this is not as elegant as one might hope.
// Safari doesn't even give line numbers for anonymous evals,
// so they can go sit in the dunce corner today.
// This returns 0 if not found, which will mean that all
// the assertion failures are shown on the first line.
var getLineNum = function(stacktrace) {
View tcpick-mac-install.sh
#!/bin/bash
mkdir temp
cd temp
wget http://downloads.sourceforge.net/project/tcpick/tcpick/0.2.1/tcpick-0.2.1.tar.gz
tar zxvf tcpick-0.2.1.tar.gz
cd tcpick-0.2.1
CFLAGS="-m32 --std=c89" ./configure
echo "char *lookup();" >> src/lookup.h
make
sudo make install
View tcpick-mac-install.sh
#!/bin/bash
mkdir temp
cd temp
wget http://downloads.sourceforge.net/project/tcpick/tcpick/0.2.1/tcpick-0.2.1.tar.gz
tar zxvf tcpick-0.2.1.tar.gz
cd tcpick-0.2.1
CFLAGS="-m32" ./configure
echo "char *lookup();" >> src/lookup.h
make
sudo make install
@devinrhode2
devinrhode2 / harsh.md
Created Jan 31, 2015
"What devin is concerned about"
View harsh.md

Wanted to withhold this harsher criticism from this comment: nolanlawson / ember-pouch / pull / 30 #issuecomment-72339191 but wanted to save it, and if someone searches google for "PouchDB security" they can find my more honest opinion:

"Concerned about the fact that you would remove documentation about security on the basis that you don't quite understand it, and not take the initiative to go and learn about it. It would be foolish to assume PouchDB currently has good security if a maintainer doesn't know what CSP is and doesn't take initiative to learn about it."

@devinrhode2
devinrhode2 / inverse-xml-color-strings.js
Last active Aug 29, 2015
modern js to inverse the colors for a textmate/sublime text .tmTheme file
View inverse-xml-color-strings.js
// inverseA is the inverse function from this page but it only returns the newColor: http://www.webmasterorbit.com/rgb-hex-code.html
var text, node;
[].slice.call(document.getElementsByTagName('string'))
.forEach(function(node){
text = node.innerText;
if ( text.indexOf('#') === 0 ) {
node.innerText = '#' + inverseA(text.substring(1, 7) )
}
})
You can’t perform that action at this time.