This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ul { | |
list-style: none; | |
} | |
ul li:before { | |
color: #f00; | |
content: '» \0000a0'; /* unicode character for space */ | |
font-size: 1.2em; | |
font-weight: bold; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// assuming a loop where i is incremented | |
if ($i % 2 == 1) $classes .= " odd"; | |
else $classes .= " even"; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
#header { position: relative; } | |
#header-content { position: absolute; bottom: 0; left: 0; } | |
</style> | |
<div id="header"> | |
<h1>Title</h1> | |
<div id="header-content">Some content</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<article> | |
<p>...Each religious convent became responsible for running a school (nuns’ monasteries were in charge of education for girls)<sup><a href="#fn1" id="r1">1</a></sup> and convents with fewer than eight members were transformed into elementary or high schools (González Serrano 2009: 156-157). ...</p> | |
<section id="footnotes"> | |
<p id="fn1"><sup><a href="#r1">1</a></sup> The enrollment of girls in elementary schools was very slow after Independence—only 15% of the students were girls in the 1820s, which rose to 45% in 1894, probably as a result of the 1870 reform and its compulsory education provision (Ramírez and Salazar 2010: 443, 446).</p> | |
</section> | |
<section id="references"> | |
<h5>References</h5> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOAD DATA LOCAL INFILE 'C:/path/to/file.csv' | |
INTO TABLE `tablename` | |
FIELDS TERMINATED BY ',' ENCLOSED BY '"' | |
LINES TERMINATED BY '\r\n' | |
IGNORE 1 LINES | |
(field1,field2,field3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add the file to .gitignore, then... | |
git rm --cached filename | |
git commit -am 'removed filename' | |
git push origin master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<ead xmlns="urn:isbn:1-931666-22-9" xmlns:xlink="http://www.w3.org/1999/xlink" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="urn:isbn:1-931666-22-9 http://www.loc.gov/ead/ead.xsd" | |
id="sample"> | |
<!-- eadheader: Description of the collection, not the items in the collection. Includes all the DACS required elements (yellow elements on sheet in packet) --> | |
<eadheader> | |
<!-- mainagencycode: ISO name for Library of Congress --> | |
<!-- countrycode: ISO name for the United States --> | |
<eadid mainagencycode="US-DLC" countrycode="US">http://hdl.loc.gov/loc.mss/eadmss.ms010049</eadid> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- a schema for my postcard, with some commented-out stuff for other possibilities --> | |
<!-- ?. *, + act the same as quantiifers in regex --> | |
<!-- file extension has an extra .xml on the end to get github to color-code properly --> | |
element postcard { | |
<!-- attribute example | |
element date { | |
attribute iso-date { xsd:gYear }?, | |
text | |
},--> | |
element sender { text }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT question_id, li.short_name, lo.location_name, qt.question_type, q.question_type_other, t.time_spent, q.referral_id, p.patron_type, qf.question_format, q.initials, q.hide, q.obsolete, q.question_date, q.client_ip, q.question, q.answer, q.delete_hide, q.date_added FROM libstats.questions q | |
LEFT JOIN libstats.libraries li on li.library_id=q.library_id | |
LEFT JOIN libstats.locations lo on lo.location_id=q.location_id | |
LEFT JOIN libstats.question_types qt on qt.question_type_id=q.question_type_id | |
LEFT JOIN libstats.patron_types p on p.patron_type_id=q.patron_type_id | |
LEFT JOIN libstats.question_formats qf on qf.question_format_id=q.question_format_id | |
LEFT JOIN libstats.time_spent_options t on t.time_spent_id=q.time_spent_id | |
LEFT JOIN libstats.users u on q.user_id=u.user_id | |
WHERE delete_hide=0 | |
ORDER BY q.question_date ASC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=(((A1/60)/60)/24)+DATE(1970,1,1) |
OlderNewer