This file contains hidden or 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 scala.collection.mutable.Map | |
import scala.concurrent.ExecutionContextExecutor | |
import akka.http.scaladsl.model.ContentTypes | |
import akka.http.scaladsl.model.HttpEntity | |
import akka.http.scaladsl.model.HttpEntity.ChunkStreamPart | |
import akka.http.scaladsl.model.HttpEntity.apply | |
import akka.http.scaladsl.model.HttpProtocols | |
import akka.http.scaladsl.model.HttpResponse | |
import akka.http.scaladsl.model.StatusCode |
This file contains hidden or 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 fibonacci(size) { | |
var first = 0, | |
second = 1, | |
next, | |
count = 2, | |
result = [first, second]; | |
if(size < 2) { | |
console.log(result); |
This file contains hidden or 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
var testDiv = document.querySelector('.test-div'); | |
function filterSpaces(strArray) { | |
return strArray.filter(function(str) { | |
return /\S/.test(str); | |
}); | |
} | |
function addClass(elem, className) { | |
var classes = filterSpaces(elem.className.split(' ')); |
This file contains hidden or 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
<div> | |
<span class="primary">#</span> | |
<span class="primary-l-1">#</span> | |
<span class="primary-l-2">#</span> | |
<span class="primary-l-3">#</span> | |
<span class="primary-l-4">#</span> | |
</div> | |
<div> | |
<span class="secondary">#</span> |
This file contains hidden or 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
<h1>Hamburger</h1> | |
<h2>Hamburger</h2> | |
<h3>Hamburger</h3> | |
<h4>Hamburger</h4> | |
<h5>Hamburger</h5> | |
<h6>Hamburger</h6> |
This file contains hidden or 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
/* | |
this function will take in a due date and determine the remaining days until something is due from the current date. | |
*/ | |
public function calculateDate($due_date) | |
{ | |
$future = strtotime($due_date); | |
$now = time(); | |
$timeleft = $future-$now; | |
$daysleft = round((($timeleft/24)/60)/60); |
NewerOlder