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
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. |
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
<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> |
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
module ApplicationHelper | |
$component_symbol_hash = { | |
'1' => "fa-check-square", | |
'2' => "fa-list", | |
'3' => "fa-cogs" | |
} | |
# Determine if subcomponent | |
def containsLetter(string_value) |
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
<% 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) %> |
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
{ | |
"project":{ | |
"components":[ | |
{ | |
"name":"1", | |
"description":"1" | |
}, | |
{ | |
"name":"1-subitem1", | |
"description":"1A" |
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
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 |
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
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; |
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
/* 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 { |
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
/************************* | |
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%; | |
} |
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
<!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 --> |
NewerOlder