Skip to content

Instantly share code, notes, and snippets.

View bumble-bee-chuna's full-sized avatar
🐢
Doing data stuff

Bee bumble-bee-chuna

🐢
Doing data stuff
View GitHub Profile
import numpy
from pandas import DataFrame, Series
def points():
'''
Imagine a point system in which each country is awarded 4 points for each
gold medal, 2 points for each silver medal, and one point for each
bronze medal.
<li class="">
<a href="#">
<i class="fa fa-check-square"></i>
<span class="nav-label">1, 1</span>
<span class="fa arrow"></span>
</a>
<ul class="nav nav-second-level collapse" style="height: 0px;">
<li class=""><a href="#">1-subitem1, 1A</a></li>
<li class=""><a href="#">1-subitem2, 1B</a></li>
</ul>
module ApplicationHelper
$component_symbol_hash = {
'1' => "fa-check-square",
'2' => "fa-list",
'3' => "fa-cogs"
}
# Determine if subcomponent
def containsLetter(string_value)
<% if defined? project %>
<%
components = retrieve_components(project)
previous_component = {}
components.each do |component|
%>
<%= open_or_close_unordered_list(previous_component, component).html_safe %>
<% if !containsLetter(component.description) %>
{
"project":{
"components":[
{
"name":"1",
"description":"1"
},
{
"name":"1-subitem1",
"description":"1A"
class IssuesController < ApplicationController
before_action :get_jira_client
def index
@issues = @jira_client.Issue.all
end
def show
@issue = @jira_client.Issue.find(params[:id])
end
package com.snapwebdevelopment.scanhappy.paymentApi;
import android.content.Context;
import android.support.annotation.NonNull;
import android.util.Log;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.StringRequest;
/* If on a desktop, change nav's logo and hamburger when past the hero */
if( screen.width >= 875 ) {
var scroll_pos = 0;
$(document).scroll(function() {
scroll_pos = $(this).scrollTop();
if(scroll_pos > 520) {
$("#logo").attr("src", "assets/images/logo-scroll.svg");
$("#hamburger").attr("src", "assets/images/hamburger-scroll.svg")
} else {
/*************************
General Assets
**************************/
html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote,
pre, form, fieldset, table, th, td, article { margin: auto 0; padding: 0; }
body, nav, article, #hero {
width: 100%;
}
<!DOCTYPE HTML>
<html lang="en">
<head itemscope itemtype="http://schema.org/WebSite">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="msapplication-tap-highlight" content="no">
<!-- Color the status bar on mobile devices -->