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
| SELECT | |
| journals.journal_id, | |
| journals.path, | |
| journals.enabled, | |
| (SELECT journal_settings.setting_value FROM journal_settings WHERE journal_id = journals.journal_id AND setting_name = 'name' AND locale = journals.primary_locale) AS name, | |
| (SELECT COUNT(issues.issue_id) FROM issues WHERE journal_id = journals.journal_id AND issues.published = 1) AS issue_count, | |
| (SELECT MAX(issues.date_published) FROM issues WHERE journal_id = journals.journal_id) AS last_published, |
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.6' | |
| services: | |
| vuejs: | |
| image: node:12 | |
| volumes: | |
| - ./project:/project | |
| - ./vuejs.sh:/vuejs.sh | |
| ports: | |
| - 8111:8080 | |
| - 8112:8000 |
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
| module.exports = { | |
| productionSourceMap: false, | |
| devServer: { | |
| compress: true, | |
| proxy: { | |
| '^/api': { | |
| target: 'http://api/', | |
| pathRewrite: { '^/api': '' }, | |
| changeOrigin: 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
| import threading | |
| import queue | |
| import time | |
| import signal | |
| import sys | |
| from datetime import datetime | |
| class myThreading(): | |
| def __init__(self, n=3): |
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 threading | |
| import queue | |
| import time | |
| import signal | |
| import sys | |
| from datetime import datetime | |
| class myThreading(): | |
| def __init__(self, n=3): |
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 concurrent.futures | |
| from datetime import datetime | |
| import time | |
| import random | |
| def process(i, data): | |
| t = random.randrange(5) | |
| time.sleep(t) | |
| print("Process index:", i, ' Sleep:', t, ' Current:', datetime.now()) |
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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>JS Sort Example</title> | |
| </head> | |
| <body> | |
| <h1>Locale Sort Example</h1> | |
| <hr/> |
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
| #!/bin/bash | |
| d=2020-12-01 | |
| t=2021-01-01 | |
| while [ "$d" != "$t" ]; do | |
| echo $d | |
| if [[ "$OSTYPE" == "linux-gnu"* ]]; then | |
| printf '=%.0s' {1..25} |
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
| setInterval(() => { | |
| window.fetch('https://api.prayut.click/clicks', { | |
| method: 'POST', | |
| body: JSON.stringify({ | |
| n: Math.floor(Math.random() * 10) + 990, | |
| g: 4, | |
| t: Date.now() | |
| }), | |
| headers: { | |
| 'Content-type': 'application/json; charset=UTF-8' |
OlderNewer