Skip to content

Instantly share code, notes, and snippets.

🎯
Beating the fuck out of Javascript with Reason

Peter Piekarczyk peterpme

🎯
Beating the fuck out of Javascript with Reason
Block or report user

Report or block peterpme

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 convert.zsh
for dir in *; do
for i in $dir/*.png; do;
convert $i -quality 80 $i.jpg;
done;
done;
@peterpme
peterpme / InitializeJavaScriptAppEngine.js
Last active Aug 28, 2015
Expose your React Native network requests in Chrome
View InitializeJavaScriptAppEngine.js
103 function setUpXHR() {
104 // The native XMLHttpRequest in Chrome dev tools is CORS aware and won't
105 // let you fetch anything from the internet
106 GLOBAL.XMLHttpRequest = require('XMLHttpRequest'); // COMMENT OUT
107 GLOBAL.FormData = require('FormData'); // COMMENT OUT
108
109 var fetchPolyfill = require('fetch'); // COMMENT OUT
110 GLOBAL.fetch = fetchPolyfill.fetch; // COMMENT OUT
111 GLOBAL.Headers = fetchPolyfill.Headers; // COMMENT OUT
112 GLOBAL.Request = fetchPolyfill.Request; // COMMENT OUT
@peterpme
peterpme / 0_reuse_code.js
Created Feb 4, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@peterpme
peterpme / SassMeister-input-HTML.html
Created Feb 5, 2014
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="btn-close-container blue round base">
<div class="btn-close-outer">
<div class="btn-close-inner">
<p class="btn-close-x">X</p>
</div>
</div>
</div>
@peterpme
peterpme / SassMeister-input-HTML.html
Created Feb 6, 2014
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<h1>Styling Links</h1>
<a href="#" class="box">Google.com</a><br/>
@peterpme
peterpme / SassMeister-input-HTML.html
Created Feb 6, 2014
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="btn-close-container blue round base">
<div class="btn-close-outer">
<div class="btn-close-inner">
<p class="btn-close-x">X</p>
</div>
</div>
</div>
<div class="blue-box">ss</div>
@peterpme
peterpme / SassMeister-input-HTML.html
Created Feb 19, 2014
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="box">
<p>sdkfjhsd fksdjfh sdfsdf sdf</p>
</div>
@peterpme
peterpme / SassMeister-input-HTML.html
Created Feb 20, 2014
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="box">
<p>sdkfjhsd fksdjfh sdfsdf sdf</p>
</div>
@peterpme
peterpme / SassMeister-input-HTML.html
Created Feb 25, 2014
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<ul>
<li><span>Box1</span></li>
<li><span>Box1</span></li>
<li><span>Box1</span></li>
<li><span>Box1</span></li>
<li><span>Box1</span></li>
</ul>
@peterpme
peterpme / SassMeister-input-HTML.html
Created Feb 25, 2014
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<button class="one">Click Here For More!</button>
<button class="two">Click Here For More!!</button>
You can’t perform that action at this time.