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 "package:flutter/material.dart"; | |
| void main() { | |
| runApp(myapp()); | |
| } | |
| // stateless visit | |
| class myapp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { |
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 'package:flutter/material.dart'; | |
| import 'package:flutter/rendering.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { |
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 'package:flutter/material.dart'; | |
| void main(){ | |
| runApp(myapp()); | |
| } | |
| // stateless widget | |
| class myapp extends StatelessWidget { | |
| @override |
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 "package:flutter/material.dart"; | |
| void main() { | |
| runApp(myapp()); | |
| } | |
| // stateless visit | |
| class myapp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { |
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 'dart:async'; | |
| import "package:flutter/material.dart"; | |
| import "package:flutter/rendering.dart"; | |
| void main() { | |
| runApp(myapp()); | |
| } | |
| // stateful visit | |
| class myapp extends StatelessWidget { |
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 | |
| $visits=0; | |
| if(isset($_COOKIE['visits'])){ | |
| $visits=$_COOKIE['visits']; | |
| $visits++; | |
| } | |
| if(isset($_COOKIE['lasttime'])){ | |
| $lasttime =$_COOKIE['lasttime']; | |
| } |
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 | |
| $users = 0; | |
| $visittime = date("d-m-Y H:i:s"); | |
| echo $visittime; | |
| if (!$users) { | |
| echo '<br>'. "<b>Welcome to DevOpsSchool</b>"; |
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 | |
| require_once "config.php"; | |
| $profile = $_POST['profile']; | |
| $content = $_POST['content']; | |
| $privacy = $_POST['privacy']; | |
| $post = $linkedin->linkedInTextPost($_SESSION['linkedInAccessToken'] , $profile, $content, $privacy); |
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 | |
| require "config.php"; | |
| $profile = $linkedin->getPerson($_SESSION['linkedInAccessToken']); | |
| ?> | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Share with LinkedIn API v2</title> | |
| <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> |
NewerOlder