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
| # Frontend Design Guideline | |
| This document summarizes key frontend design principles and rules, showcasing | |
| recommended patterns. Follow these guidelines when writing frontend code. | |
| # Readability | |
| Improving the clarity and ease of understanding code. |
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
| def generate( | |
| model, | |
| tokenizer, | |
| prompt, | |
| entry_count=10, | |
| entry_length=30, #maximum number of words | |
| top_p=0.8, | |
| temperature=1., | |
| ): | |
| model.eval() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| const rp = require('request-promise') | |
| const NodeRsa = require('node-rsa') | |
| const getLenChar = value => String.fromCharCode(`${value}`.length) | |
| async function doLogin(email, password) { | |
| const cookieJar = rp.jar(); | |
| // 세션 키 발급 | |
| const keys = await rp({url: 'https://nid.naver.com/login/ext/keys.nhn', jar: cookieJar}) | |
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
| from django.contrib.admin.models import LogEntry, CHANGE, ContentType | |
| from reversion.revisions import default_revision_manager as revision_manager | |
| from app.models import MyModel | |
| revision_manager.register(MyModel) | |
| LogUser, created = User.objects.get_or_create(username='LogUser') | |
| if created: | |
| ApplicationUser.first_name = 'Log' |