Skip to content

Instantly share code, notes, and snippets.

View cheapwebmonkey's full-sized avatar
🏳️‍🌈
she/they. bi. INTJ. literal genius. I break things. #civictech #opendata

Margeaux Spring cheapwebmonkey

🏳️‍🌈
she/they. bi. INTJ. literal genius. I break things. #civictech #opendata
View GitHub Profile
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#9b59b6, 6.5%)",
"@brand-success": "#27ae60",
@cheapwebmonkey
cheapwebmonkey / flavor-array
Created May 23, 2015 15:53
Lists different ice cream flavors in php array
<?php
$flavors = array("Vanilla","chocolate", "Strawberry", "Spumoni");
?><pre>
<?php
echo "We have " . count($flavors) . " flavors available. Here's a list:\n";
foreach ($flavors as $flavor) {
@cheapwebmonkey
cheapwebmonkey / slim-shady
Created May 23, 2015 15:56
My name is... php + html
<?php
$name = "Slim Shady";
?>
<h1>My name is <?php echo $name; ?>.</h1>
@cheapwebmonkey
cheapwebmonkey / slim-shady2
Created May 23, 2015 16:03
Will the real...php + html
<?php
$name = "Slim Shady";
if ($name == "Slim Shady") { ?>
<?php echo "Will the real $name please stand up?";
};
?>
@cheapwebmonkey
cheapwebmonkey / flavors-2
Last active August 29, 2015 14:21
Flavor array php + html
<?php
$flavors = array("Vanilla", "Chocolate", "Strawberry", "Spumoni");
?><html>
<body>
<p><?php echo "We have " . count($flavors) . " flavors available. Here's a list:"; ?></p>
<?php foreach ($flavors as $flavor) { ?>
<?php
$countries = array();
$countries[0] = array(
"code" => "US",
"name" => "United States",
"capital" => "Washington, D.C.",
"population" => 2250000000,
"anthem" => "The Star-Spangled Banner"
@cheapwebmonkey
cheapwebmonkey / gist:3dd8c0d9f4a08d11bf18
Last active September 7, 2015 22:14 — forked from strongjz/gist:30ff7f8cd2150ed8618f
Ruby internet resources
Ruby Docs
http://ruby-doc.org/
Ruby language
https://www.ruby-lang.org/en/
Rails
http://rubyonrails.org/

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Common Vagrant Commands

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
  • vagrant status -- outputs status of the vagrant machine
  • vagrant halt -- stops the vagrant machine
  • vagrant reload -- restarts vagrant machine, loads new Vagrantfile configuration
  • vagrant provision -- forces reprovisioning of the vagrant machine
**Python**
navigate to your file directory
python -m SimpleHTTPServer 8000
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="description" content="flickr">
<meta charset="utf-8" />
<title></title>
<script src="http://cdn.kendostatic.com/2012.1.322/js/jquery.min.js" type="text/javascript"></script>
<script src="http://cdn.kendostatic.com/2012.1.322/js/kendo.web.min.js" type="text/javascript"></script>
<link href="http://cdn.kendostatic.com/2012.1.322/styles/kendo.common.min.css" rel="stylesheet" type="text/css" />