The code below asks the user how many eggs they would like, ensures they enter a value, and renders a number of egg images matching the entered value.
Update this code to ask the user how many dozens of eggs they would like, and render the one-dozen.gif
image instead.
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
curl -OL https://github.com/gphoto/libgphoto2/releases/download/v2.5.31/libgphoto2-2.5.31.tar.gz | |
tar -xzf libgphoto2-2.5.31.tar.gz | |
cd libgphoto2-2.5.31/ | |
sudo apt install libtool libusb-dev | |
./configure --prefix=/usr/local | |
make | |
sudo make install | |
ls -al /usr/local/lib/libgphoto2 | |
curl -OL https://github.com/gphoto/gphoto2/releases/download/v2.5.28/gphoto2-2.5.28.tar.gz | |
tar -xzf gphoto2-2.5.28.tar.gz |
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
#!/usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
################################################## | |
# GNU Radio Python Flow Graph | |
# Title: Sdrplay Rsp2 Fft | |
# Generated: Thu Jan 18 07:07:54 2018 | |
################################################## | |
if __name__ == '__main__': | |
import ctypes |
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
#!/bin/sh - | |
# We just download the bootstrap script by default and execute that. | |
if [ -x /usr/bin/fetch ]; then | |
/usr/bin/fetch -o - https://raw.githubusercontent.com/johntron/salt-bootstrap/hotfix/ubuntu-urllib3/bootstrap-salt.sh | sh -s -- "$@" | |
elif [ -x /usr/bin/curl ]; then | |
/usr/bin/curl -L https://raw.githubusercontent.com/johntron/salt-bootstrap/hotfix/ubuntu-urllib3/bootstrap-salt.sh | sh -s -- "$@" | |
else | |
python \ | |
-c 'import urllib; print urllib.urlopen("https://raw.githubusercontent.com/johntron/salt-bootstrap/hotfix/ubuntu-urllib3/bootstrap-salt.sh").read()' \ |
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
<body style="font-family: sans-serif"> | |
<h1>avalanche_app branches</h1> | |
<h2>6+ months since last commit</h2> | |
All of these will be deleted unless you speak up! | |
<ul> | |
<li>2013-04-11 15:17:12 -0700 remotes/origin/studio_port_middleware – already merged into master, safe to delete</li> | |
<li>2013-04-11 16:47:41 -0700 remotes/origin/Avalanche_Next_BLL – already merged into master, safe to delete</li> | |
<li>2013-05-23 17:23:36 -0700 remotes/origin/av_system_ui – already merged into master, safe to delete</li> | |
<li>2013-05-30 16:04:44 -0700 remotes/origin/general_css – already merged into master, safe to delete</li> | |
<li>2013-05-31 17:04:44 -0600 remotes/origin/av_system – already merged into master, safe to delete</li> |
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
function handlers($el) { | |
$el = $($el); | |
var events = $._data(document.body).events; | |
var matched_handlers = []; | |
Object.keys(events).forEach(function(event_type) { | |
var handlers = events[event_type].filter(function (handler) { | |
if (!handler.selector) { return false; } | |
return $el.is(handler.selector) || $el.has(handler.selector).length; | |
}); | |
matched_handlers = matched_handlers.concat(handlers) |
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
<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script> | |
<a href="asdf?foo=bar">clickme</a> | |
<a href="asdf?doo=gar">clickme2</a> | |
<script> | |
var $as = document.querySelectorAll('a'); | |
[].forEach.call($as, function ($a) { | |
$($a).on('click', post); | |
}); |
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
/*jslint node: true, sloppy:true */ | |
var gulp = require('gulp'), | |
Duo = require('duo'), | |
through = require('through2'), | |
paths = { | |
scripts: ['src/boot.js'], | |
styles: ['src/*.css', 'src/**/*.css'], | |
images: ['src/*.png', 'src/**/*.png'] | |
}; |
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
#!/local/pythonenv/bin/python | |
from pyramid.paster import bootstrap | |
import json | |
from axon.testcases.config import ConfigFactory | |
from axon.tasks.reservations import create | |
bootstrap('/local/web/Axon/development.ini') | |
c = """ |
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
[root@tomahawk ~]# echo '{"engine": "stc", "session": "b551df0e-f4d3-4aae-9a8b-7e6e0e8f2228", "file": "/local/web/data/captures/pcap-cb8ef148-eaf3-4ad6-b9b4-b7ef21245297.gz", "interface": "eth2", "max_bytes": 10737418240, "size": 0}' | /local/admin/start-capture -p | |
{ | |
"detail" : "processing input parameters for (/local/admin/start-capture)" | |
} | |
{ | |
"message" : "using capture interface eth2" | |
} | |
{ |
NewerOlder