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
for (var i = 8; i < 17; i++) { | |
for (var z = 0; z < 4; z++) { | |
var sufix = i <= 9 ? '0' : ''; | |
var min = z*15 == 0 ? '00': z*15; | |
alert.addInput({ | |
type: 'radio', | |
label: sufix + i + ':' + min, | |
value: sufix + i + ':' + min + ':00-03:00', | |
checked: false | |
}); |
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
sudo /usr/sbin/apachectl stop | |
valet restart |
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
<ul class="flex align-items-start"> | |
<li class="red"><p>Box One</p></li> | |
<li class="blue"><p>Box Two</p></li> | |
<li class="red"><p>Box Three</p></li> | |
</ul> | |
<ul class="flex align-items-end"> | |
<li class="red"><p>Box One</p></li> | |
<li class="blue"><p>Box Two</p></li> | |
<li class="red"><p>Box Three</p></li> |
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
.flex-wrap { | |
flex-wrap: nowrap; | |
} | |
.flex-wrap { | |
flex-wrap: wrap; | |
} | |
.flex-wrap { | |
flex-wrap: wrap-reverse; |
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
.flex-direction { | |
flex-direction: row; | |
} | |
.flex-direction { | |
flex-direction: row-reverse; | |
} | |
.flex-direction { | |
flex-direction: column; |
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
<ul class="flex justified-space-between red"> | |
<li><p>Box One</p></li> | |
<li><p>Box Two</p></li> | |
<li><p>Box Three</p></li> | |
</ul> | |
<ul class="flex justified-space-around blue"> | |
<li><p>Box One</p></li> | |
<li><p>Box Two</p></li> | |
<li><p>Box Three</p></li> |
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
<ul> | |
<li>Box One</li> | |
<li>Box Two</li> | |
<li>Box Three</li> | |
</ul> |
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 Foundation | |
let string = "1 2 3 4 5" | |
let numbers = string.split(separator: " ").map{Int($0)!} | |
var asc = numbers.sorted() | |
var desc = Array(asc.reversed()) | |
print (asc) | |
asc.removeFirst() |
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
<?php | |
$handle = fopen ("php://stdin","r"); | |
fscanf($handle,"%d",$n); | |
$unsorted = array(); | |
for($unsorted_i = 0; $unsorted_i < $n; $unsorted_i++){ | |
fscanf($handle,"%s",$unsorted[]); | |
} | |
// your code goes here |
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
/* | |
* Snippet found at https://blog.nraboy.com/2014/12/open-dynamic-links-using-cordova-inappbrowser/ | |
* Suggested fix for absolute URLS by https://github.com/nraboy | |
* | |
* | |
*/ | |
function isUrl(s) { | |
var regexp = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/ | |
return regexp.test(s); |