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
CREATE PROCEDURE MYLIB.SPNAME( | |
IN @P1 CHAR(10), | |
) | |
LANGUAGE CL | |
NOT DETERMINISTIC | |
NO SQL | |
EXTERNAL NAME MYLIB.MYCL | |
PARAMETER STYLE GENERAL; |
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 sys | |
import gnupg | |
def main(): | |
path_home = sys.argv[1] | |
path_file_input = sys.argv[2] | |
path_file_output = sys.argv[3] | |
gpg = gnupg.GPG(gnupghome=path_home) | |
key = gpg.list_keys() |
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
/* | |
* Status Loading | |
* Actions types | |
*/ | |
const activatedLoading = () => ({ | |
type: 'LOADING_ACTIVATED', | |
status: true | |
}) |
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 axios from 'axios' | |
/** | |
* Config global for axios/django | |
*/ | |
axios.defaults.xsrfHeaderName = "X-CSRFToken" | |
axios.defaults.xsrfCookieName = 'csrftoken' | |
export default axios |
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
/** | |
* Example: Base URL to consume REST API only in development | |
*/ | |
let API_URL = 'https://krescruz.com/api' //URL PRODUCTION | |
if (!process.env.NODE_ENV || process.env.NODE_ENV === 'development') { | |
API_URL = 'http://localhost:8000/api' //URL DEVELOPMENT | |
} | |
export const API_URL_BASE = API_URL |
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 { toast } from 'react-toastify' | |
const POSITION = toast.POSITION.BOTTOM_RIGHT | |
export const saved = (msg) => { | |
const detail = msg || 'Saved successful' | |
toast.success(detail, { position: POSITION }) | |
} | |
export const invalidForm = (msg) => { |
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 React, { Component } from 'react' | |
import PropTypes from 'prop-types' | |
class BsModalSimple extends Component { | |
onCloseModal() {} | |
render() { |
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 React, { Component } from 'react' | |
import MaskedInputBase from 'react-maskedinput' | |
class MaskedInput extends Component { | |
getValue() { | |
const value = this.refs.masked.mask.getRawValue() | |
return value.replace(/[\s,_]/g, '') | |
} |