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
@pytest.mark.asyncio | |
async def test_get_openai_models(simple_test_settings: Settings): | |
async with create_test_server() as server: | |
# Create Mock OpenAI Models endpoint | |
@server.app.get("/openai/models", status_code=200) | |
async def get_models(): | |
# Create models list with random timestamps | |
models_data = [] | |
end_date = datetime(2024, 3, 1) |
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 gulp = require('gulp'); | |
var browserSync = require('browser-sync').create(); | |
var sass = require('gulp-sass'); | |
// Compile sass into CSS & auto-inject into browsers | |
gulp.task('sass', function() { | |
return gulp.src(['node_modules/bootstrap/scss/bootstrap.scss', 'scss/*.scss']) | |
.pipe(sass()) | |
.pipe(gulp.dest("css")) | |
.pipe(browserSync.stream()); |
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
11:54:11 T:1394358576 DEBUG: New Service [service.subtitles.podnapisi] | |
11:54:11 T:1395423536 DEBUG: bool XFILE::CPluginDirectory::StartScript(const string&, bool) - calling plugin Podnapisi.net('plugin://service.subtitles.podnapisi/','1','?action=search&languages=English%2cNorwegian%20Bokm%c3%a5l&preferredlanguage=Norwegian%20Bokm%c3%a5l') | |
11:54:11 T:1395423536 DEBUG: bool XFILE::CPluginDirectory::WaitOnScriptResult(const string&, int, const string&, bool) - waiting on the Podnapisi.net (id=0) plugin... | |
11:54:11 T:1394358576 DEBUG: ------ Window Init (DialogSeekBar.xml) ------ | |
11:54:11 T:1442707760 DEBUG: Thread LanguageInvoker start, auto delete: false | |
11:54:11 T:1442707760 INFO: initializing python engine. | |
11:54:11 T:1394358576 DEBUG: SECTION:LoadDLL(libImageLib-arm.so) | |
11:54:11 T:1394358576 DEBUG: Loading: /data/app/com.semperpax.spmc16-2/lib/arm/libImageLib-arm.so | |
11:54:11 T:1442707760 DEBUG: CPythonInvoker(0, /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/serv |
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 HOST the IP is correctly resolved 'mysql.example.com' with the correct address <=== | |
ubuntu@docker:~$ host mysql.example.com 172.17.0.1 | |
Using domain server: | |
Name: 172.17.0.1 | |
Address: 172.17.0.1#53 | |
Aliases: | |
mysql.example.com has address 172.17.0.10 |
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
// User model | |
@Exclude | |
@XmlRootElement(name = "user") | |
@XmlAccessorType(XmlAccessType.PROPERTY) | |
@JsonIgnoreProperties(ignoreUnknown = true) | |
public class User extends Principal { | |
@Column(name = "USERNAME", nullable = false, length = 20) | |
public String getUsername() { |
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
// Test case: | |
@Inject | |
@PartsRepository | |
EntityManager em; | |
@Inject | |
private ActiveEntityManagerHolder emHolder; | |
@Test |
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
'use strict'; | |
/** | |
* http://book.mixu.net/node/ch9.html | |
* | |
* Created by ora on 27.03.14. | |
*/ | |
var SimpleEE = function () { | |
this.events = {}; |
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
'use strict'; | |
/** | |
* Created by ora on 27.03.14. | |
*/ | |
var eeService = require(__dirname + '/eeService.js'), | |
EventService = eeService.EventService; | |
describe('Test EventEmitter', function () { |
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
'use strict'; | |
/** | |
* Created by ora on 27.03.14. | |
*/ | |
var EventEmitter = require('events').EventEmitter, | |
util = require('util'); | |
var EventService = function () { |
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 doSearch, displayResults; | |
//var phantom = require('node-phantom'); | |
var phantom = require('node-phantom-simple'); | |
var assert = require('assert'); | |
doSearch = function (ph, page) { | |
console.log("doSearch"); | |
page.evaluate(function () { | |
$('input[name=q]').val('what is phantomjs'); | |
$('form').trigger('submit'); |