Skip to content

Instantly share code, notes, and snippets.

View jensechu's full-sized avatar

Jensen Kuras jensechu

View GitHub Profile
var fishLeft = $('.fish').css('left');
var fishTop = $('.fish').css('top');
function reset_kitty() {
$("#picture img").attr({ src: "images/kitty.png" });
$("#picture img").removeClass("eating");
$('.fish').css({top: fishTop,
left: fishLeft});
$('.fish').fadeIn("slow");
<div id="chat">
<div id="kitty-speech">
<h1>&nbsp;</h1>
</div>
<div id="user-speech">
<h3>&nbsp;</h3>
</div>
</div>
<div id="talk">
<form>
<p>mrow</p>
<input type="text" name="rawr" id="user-input" size="10" maxlength="10" />
<input type="submit" name="chat" value="meow" class="subby" />
<h4>max 10 characters</h4>
</form>
</div>
$("form").submit(function () {
var english = $("#user-input").val();
var count = english.length;
$("#kitty-speech").addClass("kitty-bubble");
if(english == ""){
$("h1").text(" mrow? ");
$("#picture img").attr({ src: "images/kitty_confused.png" });
}
@jensechu
jensechu / instagram.js
Last active September 21, 2015 22:06
Instagram Feed
InstagramFeed = function() {
var self = this;
self.props = {
$feedContainer: $('#instagram-feed-container'),
IMAGE_TEMPLATE: $('#contest-image-template').html(),
ACCESS_TOKEN: '1711440167.ac32776.52e47348e60a4bdda0b90d79507a08ae',
finalFeed: ''
};
// A shared object containing all the values you want shared between your tooltips
var shared = {
position: {
my: 'top left',
at: 'bottom right',
},
show: 'click'
hide: 'click',
style {
tip: true
# SpeedTest
Using curl
Started: Fri Oct 7 09:59:51 EDT 2011
### Local IP
76.17.126.77
function archive_toggle(){
$("h4 a:first").addClass("accordion-selected").removeClass("accordion-deselected");
}
$(document).ready(function(){
archive_toggle();
$(".accordion-deselected h4").click(function(){
$(".accordion-selected").removeClass("accordion-selected").addClass("accordion-deselected");
$(this).removeClass(".accordion-deselected");
<anonuser> Oh. Basically, they a bunch of videos 1-3 minutes. After each video
you have a round of questions. You move on after you've answered
the questions correctly. [20:58]
<anonuser> At the end of each section, you take a quiz which recaps the
material
<anonuser> That is graded and you don't get your answers until after deadline
<anonuser> The homework they give out builds on the lessons and in later
lessons might require some serious effort. [20:59]
<anonuser> That's about all I know
<anonuser> I finished about 3/4 of before I stopped
.section {
/* Normal Screens */
/* iPhone 4+ Screens */
/* Original iPhone Screens */ }
.section .inner {
width: 50%;
margin-right: auto;
margin-left: auto;
background-color: red; }