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
<article> | |
<section class="top-pointer"> | |
<ul> | |
<li class="category">cate</li> | |
<li> | |
<ul> | |
<li>Previous Article</li> | |
<li>Next Article</li> | |
</ul> | |
</li> |
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
name: Deploy to Vapor | |
on: | |
push: | |
branches: | |
- laravel | |
jobs: | |
vapor-deploy: |
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
name: Deploy to Vapor | |
on: | |
push: | |
branches: | |
- vapor-deploy | |
jobs: | |
vapor-deploy: | |
runs-on: ubuntu-latest |
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
image: cirrusci/flutter:stable | |
before_script: | |
- flutter pub get | |
- flutter clean | |
- flutter --version | |
- flutter pub global activate junitreport | |
stages: | |
- analyze-and-test |
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
void main() { | |
Map<String,dynamic> toDegreesMinutesAndSeconds(double coord) { | |
double absolute = coord.abs(); | |
int degrees = absolute.floor(); | |
double minutesNotTruncated = (absolute - degrees) * 60; | |
int minutes = minutesNotTruncated.floor(); | |
double seconds = ( (minutesNotTruncated - minutes) * 60 ); | |
return { |
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
name: Build and Test | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 |
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
name: Build APK Release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
name: Build APK | |
runs-on: ubuntu-latest | |
steps: |
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
/** | |
* Get Posts | |
* | |
* build array of post data | |
* | |
* @param string $post_type - could be a custom post type. defaults to 'post' | |
* @param string $return_number - defaults to all available posts | |
* @return array | |
*/ | |
function getPostsData(string $post_type, string $return_number): array { |
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
$copyToClipboard.on('click', function() { | |
copyToClipboard($yourVarName.html()); //in this case, i am copying the html inside a div | |
}); | |
/** | |
* Copy object to Clipboard | |
* @param element | |
*/ | |
function copyToClipboard(element) { | |
var $temp = $("<input>"); |