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
<!-- | |
npx degit sveltejs/template name-project | |
cd name-project | |
npm install | |
npm run dev | |
--> | |
<script> | |
import { onMount } from 'svelte'; | |
let items; |
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
version: '3' | |
services: | |
traefik: | |
# The official v2 Traefik docker image | |
image: traefik:v2.3 | |
# Enables the web UI and tells Traefik to listen to docker | |
command: | |
- --api.insecure=true | |
- --providers.docker=true |
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 fs = require('fs'), | |
http = require('http'); | |
http.createServer(function (req, res) { | |
if (req.url == "/") req.url = "/index.html"; | |
fs.readFile(__dirname + req.url, function (err,data) { | |
if (err) { | |
res.writeHead(404); | |
res.end(JSON.stringify(err)); | |
return; |
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
/* | |
* <dependency> <groupId>com.amazonaws</groupId> | |
* <artifactId>aws-java-sdk-s3</artifactId> </dependency> | |
*/ | |
public void uploadFileToBucketS3(MultipartFile file, String bucketName, String fileName, Boolean isPrivateFile) { | |
try { | |
String ACCESS_KEY_ID = "<ACCESS_KEY_ID>"; | |
String SECRET_ACCESS_KEY = "<SECRET_ACCESS_KEY>"; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Title of the document</title> | |
<style> | |
table, | |
th, | |
td { |
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
#....................# | |
spring.jpa.show-sql=true | |
#....................# | |
logging.level.org.hibernate.SQL=DEBUG | |
logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE | |
spring.jpa.properties.hibernate.format_sql=true |
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
<!doctype html> | |
<html xmlns:ng="http://angularjs.org" ng-app="ngApp"> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<title>Component Easy. AngularJS Version 1.6.9. </title> | |
<script src="https://code.angularjs.org/1.6.9/angular.js"></script> | |
</head> | |
<body> | |
<div ng-controller="newCtrl"> | |
<h1>{{top}}</h1> |
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
<!doctype html> | |
<html xmlns:ng="http://angularjs.org" ng-app="ngApp"> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<title>Calling http. Simple ng-repeat. AngularJS Version 1.6.9. </title> | |
<script src="https://code.angularjs.org/1.6.9/angular.js"></script> | |
</head> | |
<body> | |
<div ng-controller="newCtrl"> | |
<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
<!doctype html> | |
<html xmlns:ng="http://angularjs.org" ng-app="ngApp"> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<title>Simple start. AngularJS Version 1.6.9</title> | |
<script src="https://code.angularjs.org/1.6.9/angular.js"></script> | |
</head> | |
<body> | |
<div> | |
I can add 1+2 = {{ 1+2 }}. |
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
<!--https://bl.ocks.org/jachanga--> | |
<!doctype html> | |
<html ng-app="myApp"> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<title>Simple Sum Angular (Simple Sample. Simple Controller)</title> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.1/angular.min.js"></script> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> |
NewerOlder