Skip to content

Instantly share code, notes, and snippets.

View rickhernandezio's full-sized avatar
🎯
Focusing

Rick Hernandez rickhernandezio

🎯
Focusing
View GitHub Profile
@rickhernandezio
rickhernandezio / script.sh
Created December 29, 2020 02:29
How to disable automatic updates on OSX Mac Apple
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticDownload -boolean FALSE
defaults write com.apple.systempreferences AttentionPrefBundleIDs 0 && Killall Dock
<script
type="text/javascript"
src="https://cdn.socialgoodsoftware.com/cd9b4efd89c39ed5fed18bcb6a107ffb9022b59aa6c75f99a1cb3651b9d47e4dbeaab272d0ec899014fbc43d735fb4fb/b273727e-4a08-443c-9b40-776257031708/main.js"></script>
@rickhernandezio
rickhernandezio / js
Created March 20, 2020 14:57
custom-theme.js
var checkboxes = $(container).find('.checkbox-wrapper').detach();
$(container).append(checkboxes);
var height = $(container).find('.container-wrapper').height();
$(container).height(height);
$(container).find('.checkbox-wrapper').height(height);
@rickhernandezio
rickhernandezio / font-size.css
Created February 7, 2020 19:42
NHMU Font size
p {
font-size: 1.3em;
}
@rickhernandezio
rickhernandezio / .html
Created June 28, 2019 14:30
Embed Code
<iframe width="100%" height="625px" src="https://globalhealthortho.med.utah.edu/webgl/index.html" style="max-width: 100%;"></iframe>
<iframe src="https://fabric-calculator.saltyslopes.com/" width="100%" frameborder="0" height="608"></iframe>
MP4Box -cat 1.mp4 -cat 2.mp4 -new 3.mp4
sudo cp /Applications/Osmo4.app/Contents/MacOS/MP4Box /usr/local/bin/
sudo cp -R /Applications/Osmo4.app/Contents/MacOS/lib/* /usr/local/lib
@rickhernandezio
rickhernandezio / sequential.js
Created May 19, 2018 16:08
Process a list of sequential ajax requests using jQuery
var requests = [];
for (var key in data) { /* Create the list of requests */
if (data[key].value === 'file') {
requests.push(GetAjaxCall(data[key].uid));
}
}
$.when.apply($, requests).then(function() {
/* All done... */
});
@rickhernandezio
rickhernandezio / example.js
Last active April 9, 2018 16:07
Sparkki API
const sparkki = require('sparkki');
sparkki.setup({
school: 'Your school secret',
token: 'Authentication Token'
});
sparkki
.getCourses()
.then(courses =>{