Skip to content

Instantly share code, notes, and snippets.

View tinymachine's full-sized avatar

Mihira Jayasekera tinymachine

View GitHub Profile
@tinymachine
tinymachine / RSVP for food.gs
Last active February 20, 2021 06:37 — forked from ldang/RSVP for food
These are Google App scripts that will allow you to modify your Google form based on RSVPs. See here for reference: https://developers.google.com/apps-script/reference/forms/form-app
/* Here are the example Google Form and Spreadsheet associated with this code
https://docs.google.com/forms/d/e/1FAIpQLSczl18O39stzPCROGUHt6jk3yq-TFtL2rR9egS1l5Ym42OQIg/viewform?usp=sf_link
https://docs.google.com/spreadsheets/d/18B7HEbLTmu00yvT1Ss2Sn75i6rbvOx4_6-3Z2y3mfRs/edit?usp=sharing
You can make your own Google Form, and then use those identifiers to put into the function below
This particular function will report on how many people are coming to a potluck and what items they plan on contributing.
This version needs more improvement.
*/
@tinymachine
tinymachine / main-without-hot-and-inline.js
Created May 29, 2019 23:03
victor-hugo JS bundle WITHOUT `--hot --inline` in the `build:webpack` script (beautified)
! function (n) {
var r = {};
function o(e) {
if (r[e]) return r[e].exports;
var t = r[e] = {
i: e,
l: !1,
exports: {}
};
@tinymachine
tinymachine / main-with-hot-and-inline.js
Created May 29, 2019 23:03
victor-hugo JS bundle WITH `--hot --inline` in the `build:webpack` script (beautified)
! function (I) {
var n = window.webpackHotUpdate;
window.webpackHotUpdate = function (e, t) {
! function (e, t) {
if (!C[e] || !f[e]) return;
for (var n in f[e] = !1, t) Object.prototype.hasOwnProperty.call(t, n) && (R[n] = t[n]);
0 == --d && 0 === l && v()
}(e, t), n && n(e, t)
};
var i, r = !0,
@tinymachine
tinymachine / ExportArtboardsAsPngsForIosAndAndroidApps.jsx
Created June 7, 2016 23:14
Adobe Illustrator JSX script for exporting artboards as PNG app assets at multiple resolutions for iOS (1x, 2x, 3x) and Android (ldpi, mdpi, hdpi, xhdpi, xxhdpi)
/**
* Tweaked by Mihira Jayasekera (@_tinymachine)
* from the very handy script provided by @hotappsfactory
* <http://www.hotappsfactory.com/the-magic-illustrator-script-ai-to-ios-android/>
*
* - corrected xhdpi to be 200% instead of 225% scale
* - added ldpi (75%) and xxhdpi (300%) screen densities
* - changed filename and directory name defaults so AI document name wasn't
* being added unpredictably
* - removed AI document name from being added to Android
@tinymachine
tinymachine / pinboard-bookmarklet-minimal-ui.css
Last active July 2, 2020 20:12
Minimal UI custom CSS for Pinboard.in bookmarklet. Screenshot: http://cl.ly/UUhK
/*
Minimal UI custom CSS for the official Pinboard <http://pinboard.in> bookmarklet
Mihira Jayasekera / @_tinymachine
Updated: 2014-03-18
Apply CSS to:
- https://pinboard.in/popup_login*
- https://pinboard.in/add*
(Configure custom CSS using browser extensions like User CSS <http://code.grid.in.th>.)
@tinymachine
tinymachine / gist:1866406
Created February 19, 2012 23:15
Google Calendar Custom Stylesheet
/*
Google Calendar Custom Stylesheet
--------------------------
Highlights "today" in yellow, grays-out weekends.
*/
/* Gray-out weekends
----------------------------------------*/
.st-bg:nth-child(6), /* switch 6 to 1 if Sunday appears on the left */
.st-bg:nth-child(7),
@tinymachine
tinymachine / techmeme-simplified.css
Created January 26, 2012 22:48
Techmeme Custom Stylesheet
/*
Techmeme Custom Stylesheet
--------------------------
Removes cruft to focus on top news.
*/
/* Hide ads and unnecessary elements
----------------------------------------*/
body {min-width: 40em !important; max-width: 45em !important;}
#topcol1 {width: 100% !important;}