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"; | |
| const User = use("App/Models/User"); | |
| class AuthController { | |
| static get defaultRoute(){ | |
| return "tab.search"; | |
| } | |
| static get userRoute(){ |
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
| #include <sys/socket.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include "./sender.h" | |
| #include "../macros.h" | |
| #include "../utils.h" | |
| #include "../tools/addr.h" | |
| #include "../access.h" |
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 { Validatueur } from "../api"; | |
| import { RuleChain } from "../rules"; | |
| import * as I from "./index"; | |
| // "module augmentation", magically merges | |
| // why we have to do this and not just extend manually ? | |
| // who knows at this point | |
| declare module "../rules" { | |
| interface RuleChain<T, U> { | |
| /****************************************************************************\ |
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
| alias git-add="git add ." | |
| alias git-commit="git commit -a -m" | |
| alias git-push="git push origin master" | |
| alias git-pull="git pull origin master" | |
| alias git-s="git status" | |
| alias git-rm="git rm -r --cached ." | |
| alias git-ac="git-add && git-commit" | |
| alias gf="git flow" |
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
| last([X], X). | |
| last([_|T], R) :- last(T, R). | |
| first([H|_], H). | |
| concat([], X, X). | |
| concat([H|T], Y, [H|R]) :- concat(T, Y, R). | |
| map(_, [], []). | |
| map(F, [H|T], [R|RT]) :- call(F, H, R), map(F, T, RT). |
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
| template <class Range> | |
| Range firstHalf(const Range& r){ | |
| auto&& begin = std::begin(r); | |
| auto&& begin_ = begin; | |
| return make<Range>( | |
| begin, | |
| std::next( | |
| begin_, | |
| std::distance(begin, std::end(r)) |
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
| #include <iostream> | |
| #include <functional> | |
| #include <utility> | |
| using namespace std; | |
| template <class T> | |
| class property{ | |
| public: | |
| using setter_type = function<void(T&, const T&)>; |
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
| alias git-add="git add ." | |
| alias git-commit="git commit -a -m" | |
| alias git-push="git push origin master" | |
| alias git-pull="git pull origin master" | |
| alias git-s="git status" | |
| alias git-rm="git rm -r --cached ." | |
| alias git="'/c/Program Files/Git/bin/git.exe'" | |
| clear |
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
| #include "./memory_pool.h" | |
| #include <string.h> | |
| struct memory_pool{ | |
| size_t batchSize, allocSize, elemSize; | |
| void** available; | |
| void** inUse; | |
| int availableCursor, inUseCursor; | |
| /* |
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
| #pragma once | |
| #include <functional> | |
| #include <unordered_map> | |
| #include <string> | |
| #include <mutex> | |
| #include <sstream> | |
| #include <locale> | |
| #include <cstdlib> | |
| #include <algorithm> |