This file contains 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
defmodule ServerWeb.FlutterChatChannel do | |
use ServerWeb, :channel | |
alias ServerWeb.Chatbot.ChatMessage | |
alias LangChain.Chains.LLMChain | |
alias LangChain.Message | |
alias LangChain.Message.ToolCall | |
alias LangChain.Message.ToolResult | |
alias LangChain.ChatModels.ChatOpenAI | |
alias LangChain.PromptTemplate |
This file contains 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 | |
####### | |
# Setup | |
####### | |
### Enable IPv4/6 forwarding: | |
# # In /etc/sysctl.d/30-ipforward.conf : | |
# net.ipv4.ip_forward=1 | |
# net.ipv6.conf.default.forwarding=1 | |
# net.ipv6.conf.all.forwarding=1 |
This file contains 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 | |
function my_excel_permission() | |
{ | |
return array( | |
'Use Excel API' => array( | |
'title' => t('Use Excel API'), | |
'description' => t(''), | |
), | |
); |
This file contains 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
defmodule MangoWeb.BorrowerController do | |
use MangoWeb, :controller | |
use MangoWeb.ExtendController | |
alias Mango.Borrowers | |
alias Mango.Borrowers.Borrower | |
alias Mango.Repo | |
import Ecto.Query |
This file contains 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 Vue from 'vue' | |
import Vuex from 'vuex' | |
import createPersistedState from 'vuex-persistedstate' | |
import * as Cookies from 'js-cookie' | |
Vue.use(Vuex) | |
export default new Vuex.Store({ | |
plugins: [ |
This file contains 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
<template> | |
<sweet-modal ref="edit_borrower_modal"> | |
<h2>{{borrower.id != null ? $t('edit_student') : $t('create_new_student')}}</h2> | |
<div class="form-group"> | |
<label for="editor_name">{{$t('name')}}</label> | |
<input id="editor_name" v-model="borrower.name" placeholder="" class="form-control"> | |
</div> | |
<div class="form-group"> |
This file contains 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'; | |
var _ = require('lodash'); | |
var Storage = require('./storage.model'); | |
var ProcductLifeCycle = require('../product/product.model').ProductLifeCycle; | |
var async = require('async'); | |
// Get list of storages | |
exports.index = function (req, res) { |
This file contains 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'; | |
var _ = require('lodash'); | |
var Docxtemplater = require('docxtemplater'); | |
var ImageModule = require('docxtemplater-image-module'); | |
var fs = require('fs'); | |
var util = require('util'); | |
var path = require('path'); | |
var async = require('async'); |
This file contains 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
<title>Vue Awesome Autocomplete</title> | |
<link rel="stylesheet" href="https://unpkg.com/bulma/css/bulma.css"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> | |
<link rel="stylesheet" href="style.css"> | |
<script src="https://unpkg.com/vue/dist/vue.js"></script> | |
<div id="app"> | |
<autocomplete-input | |
:options="options" | |
@select="onOptionSelect" |
This file contains 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
<h2>Listing policies</h2> | |
<form action="/policies" method="get"> | |
<%= select nil, :client_id, @clients, name: 'client_id' %> | |
<input type="submit" value="Submit"> | |
</form> | |
<%= pagination_links @page %> | |
<!-- HTML displaying the data rows --> |