Skip to content

Instantly share code, notes, and snippets.

<forms>
<form>
<id>29</id>
<name>Membership Application</name>
<organization>
<id>19</id>
<short_name>Ski Club</short_name>
</organization>
<description>
Please fill this out so that we can process your application to the Ski and
<form>
<dl class="form">
<dt><label>Example Text</label></dt>
<dd><input type="text" class="textfield" value="Example Value" /></dd>
</dl>
<div class="form-checkbox">
<label>
<input type="checkbox" checked="checked" />
Available for hire
app.get('/results', function (request, response) {
var instagrams = [];
var tweets = [];
pg.connect(process.env.DATABASE_URL, function (err, client, done) {
client.query('SELECT * FROM tweets ORDER BY created_at DESC', function (err2, result) {
if (err2) {
console.error(err); response.send('Error ' + err2);
} else {
@tylerlee
tylerlee / rss-format.xml
Created October 13, 2015 12:34
rss-format.xml
<?xml version="1.0"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:ev="http://purl.org/rss/1.0/modules/event/" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
<channel>
<title>Student Government Association Events</title>
<description>A listing of public events for Student Government Association</description>
<link>https://orgsync.com</link>
<language>en-us</language>
<item>
<link>http://orgsync.com.dev/25567/events/779397/occurrences/1617224</link>
<guid>http://orgsync.com.dev/25567/events/779397/occurrences/1617224</guid>
seeState: function (e) {
e.preventDefault();
console.log(this.state);
},
render: function () {
return (
<button onClick={this.seeState} />
);
});
@tylerlee
tylerlee / gist:53609bff1346cebf8f0a85b6be29a88e
Last active July 11, 2023 15:07
whitelist for uploads: extensions and mimetypes
{
// Image Formats
"jpg": "image/jpeg",
"jpeg": "image/jpeg",
"gif": "image/gif",
"png": "image/png",
"bmp": "image/bmp",
"tiff": "image/tiff",
"tif": "image/tiff",