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
const m = Machine({ | |
id: 'register_context', | |
initial: 'initial', | |
context: {}, | |
states: { | |
initial: { | |
on: { | |
'': [ | |
{ target: 'redirect_dashboard', cond: 'redirect_if_logged_in' }, | |
{ target: 'redirect_user_registration', cond: 'redirect_user' }, |
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
const register_machine = Machine({ | |
id: 'comp_machine', | |
initial: 'mounted', | |
context: { | |
}, | |
states: { | |
mounted: { | |
entry: 'onmounted', | |
on: { | |
MOUNTED: 'bind' |
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
foo@scesoftwares.com:$6$1T.8vLPH8fuIC3FF$gtR565yUU6p2/7Cszjm5CltGMkqy4lcN1h7ekSHokY4pqBA7.41Diwjal5.VnZKl8IC0m3P075iuueK25k5LD/:::::: | |
bar@scesoftwares.com:$6$1T.8vLPH8fuIC3FF$gtR565yUU6p2/7Cszjm5CltGMkqy4lcN1h7ekSHokY4pqBA7.41Diwjal5.VnZKl8IC0m3P075iuueK25k5LD/:::::: | |
zoo@scesoftwares.net:$6$1T.8vLPH8fuIC3FF$gtR565yUU6p2/7Cszjm5CltGMkqy4lcN1h7ekSHokY4pqBA7.41Diwjal5.VnZKl8IC0m3P075iuueK25k5LD/::::::userdb_quota_rule=*:storage=1G |
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
#ifndef MyCAF_H | |
#define MyCAF_H | |
#include "caf/all.hpp" | |
#include <drogon/WebSocketController.h> | |
#include "mainactor.h" | |
#include "json.hpp" |
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
CREATE OR REPLACE FUNCTION ee_ab1.no_branch1_delete() | |
RETURNS trigger AS | |
$$ | |
begin | |
-- if id == 1 not delete | |
IF OLD.id = 1 THEN | |
RAISE EXCEPTION 'first entry cant be deleted.'; | |
RETURN NULL; | |
END IF; | |
RETURN OLD; |
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
module Form.Converter.FormFields where | |
import Effect.Console | |
import Control.Applicative | |
( pure | |
) | |
import Data.Function | |
( const | |
, ($) |
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 Data.Monoid | |
> import Data.Foldable | |
> foldl append mempty ["Hello", " ", "World"] | |
"Hello World" | |
> foldl append mempty [[1, 2, 3], [4, 5], [6]] | |
[1,2,3,4,5,6] |
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 SceWeb.Schema.BusinessUnitClassTypes do | |
@moduledoc """ | |
""" | |
# give us the DSL to define graphql types | |
use Absinthe.Schema.Notation | |
# enable helpers for batching association requests. | |
import Absinthe.Resolution.Helpers | |
# alias SceWeb.Schema.Middleware | |
alias Sce.Business | |
alias Sce.Data |
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
object :sic_queries do | |
@doc """ | |
sics query returns list of all Sic rows. | |
the result can be filtered based on given arguments. | |
## Arguments | |
""" | |
field :sics, list_of(:sic) do |
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 Sce.<%= @CS %>Resolver do | |
# if import_create is true i want to print some line here. | |
<%= create_tables_add_general(object){|rel_table, main_table, schema, prefix| | |
if(main_table = "Data") | |
import_create = true | |
""" import Sce.Data""" | |
else | |
"" | |
end |
NewerOlder