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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> |
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
codegen: | |
java -jar swagger-codegen-cli-2.3.1.jar generate -l swift4 -i def.yaml -o ~/Downloads/Hello/Hello/Api -DresponseAs=RxSwift | |
cd ~/Downloads/Hello/Hello && \ | |
sed -i~ 's/: Any\?/: String?/g' Api/SwaggerClient/Classes/Swaggers/Models/*.swift && \ | |
sed -i~ 's/Any\.self/String.self/g' Api/SwaggerClient/Classes/Swaggers/Models/*.swift && \ | |
sed -i~ 's/XString/XAny/g' Api/SwaggerClient/Classes/Swaggers/Models/*.swift && \ | |
sed -i~ 's/RequestBuilder<Any>/RequestBuilder<String>/g' Api/SwaggerClient/Classes/Swaggers/APIs/*.swift && \ | |
if [ -f api.patch ]; then patch -p2 -R < api.patch; fi | |
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
module Sig = | |
struct | |
module type NoteSig = sig type t end | |
module type TodoSig = sig type t end | |
end | |
module Same = | |
struct | |
module rec Note:Sig.NoteSig = struct type t = { | |
todo: Todo.t;} end | |
and Todo:Sig.TodoSig = struct type 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
// Generated by BUCKLESCRIPT VERSION 3.1.5, PLEASE EDIT WITH CARE | |
'use strict'; | |
class BaseModel { | |
static findById() { | |
return new this(); | |
} |
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
function withoutNull(object) { | |
object = _.omitBy(object, _.isNull); | |
_.forEach(object, function (val, key) { | |
if (_.isObject(object[key])) { | |
object[key] = withoutNull(val) | |
} | |
if (_.isArray(val)) { | |
object[key] = _.map(val, withoutNull) |
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
declare module 'epilogue' { | |
import { Express, Request, Response } from 'express'; | |
import { Instance, Sequelize } from 'sequelize'; | |
function initialize(options: InitializeOptions): Epilogue; | |
function resource(options: ResourceOptions): Resource; | |
interface Epilogue { | |
} |
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
$pdf_mode = 1; | |
$pdflatex = "pdflatex -shell-escape -synctex=1"; | |
# $pdflatex = "xelatex -shell-escape -synctex=1"; | |
$pdf_previewer = "open -a Skim"; |
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
declare module 'updeep' { | |
interface Placeholder { | |
} | |
interface Updeep { | |
<U extends {}>(updates: U): <T extends {}>(object: T) => T; //u(updates)(object) | |
<T extends {}>(_: Placeholder, object: T): <U extends {}>(updates: U) => T; // u(u._, object)(updates) | |
<T extends {}, U extends {}>(updates: U, object: T): T; // u(updates, object) | |
update<U extends {}>(updates: U): <T extends {}>(object: T) => T; // u.update(updates)(object) |
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
// Webpack | |
config.resolve = config.resolve || {}; | |
config.resolve.alias = config.resolve.alias || {}; | |
Object.assign(config.resolve.alias, { | |
jquery: path.join(__dirname, '/client/assets/lib/jquery/jquery.js'), | |
jqueryGritter: path.join(__dirname, '/client/assets/lib/jquery.gritter/js/jquery.gritter.js'), | |
perfectScrollbar: path.join(__dirname, '/client/assets/lib/perfect-scrollbar/js/perfect-scrollbar.jquery.min.js'), |
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 plexinc/pms-docker:latest | |
MAINTAINER [email protected] | |
RUN \ | |
# Update and get dependencies | |
apt-get update && \ | |
apt-get install -y smbclient cifs-utils nfs-common && \ | |
curl -s https://install.zerotier.com/ | bash || true && \ | |
# Cleanup | |
apt-get -y autoremove && \ | |
apt-get -y clean && \ |