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 { Injectable } from '@angular/core'; | |
import {Observable, Subject} from 'rxjs'; | |
import {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http'; | |
import {environment} from '../../../environments/environment'; | |
import {Storage} from '@ionic/storage'; | |
import {TagsModel} from '../_models/tags.model'; | |
import {map} from 'rxjs/operators'; | |
import {API_PUBLIC, API_TAGS} from '../_server'; | |
@Injectable({ |
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
[ | |
{ | |
"value": "001", | |
"label": "Banco do Brasil S.A." | |
}, | |
{ | |
"value": "003", | |
"label": "Banco da Amazônia S.A." | |
}, | |
{ |
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
const fs = require('fs'); | |
function copyImages(sourcePath, targetPath, images) { | |
for (const icon of images) { | |
let source = sourcePath + icon.source; | |
let target = targetPath + icon.target; | |
fs.copyFile(source, target, err => { | |
if (err) throw err; | |
console.log(`${source} >> ${target}`); | |
}); |
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
/** | |
* addProductWoo - approved | |
*/ | |
if( $_filter && $_filter=='addProductWoo' ) { | |
$id = isset( $_dataPost['id']) ? $_dataPost['id'] : null; | |
try { | |
$productId = $decrypto->block(base64_decode($id)); |
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
package com.stuff.app.crypto | |
import javax.crypto.Cipher | |
import javax.crypto.spec.SecretKeySpec | |
import javax.crypto.SecretKey; | |
class Crypto { |
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
$username = posix_getpwuid(posix_geteuid())['name']; |
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
server { | |
listen 80; | |
listen [::]:80; | |
root /var/www/html; | |
index index.php index.html index.htm; | |
server_name example.com www.example.com; | |
client_max_body_size 500M; | |
location / { |
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
#!/usr/bin/env bash | |
LANGUAGE=en_US.UTF-8 | |
LC_ALL=en_US.UTF-8 | |
LC_TIME=en_US.UTF-8 | |
LC_MONETARY=en_US.UTF-8 | |
LC_CTYPE=en_US.UTF-8 | |
LC_ADDRESS=en_US.UTF-8 | |
LC_TELEPHONE=en_US.UTF-8 | |
LC_NAME=en_US.UTF-8 |
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
<?php | |
class Invizzo_Bematech | |
{ | |
private $_registro = "310DBDAC-85FF-4008-82A8-E22A09F9460B"; | |
private $_impressora = 7; | |
private $_porta = "USB"; | |
private $_texto; | |
private $_texto_barcode; |
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
server { | |
listen 80; | |
listen [::]:80; | |
root /home/${OZZPY_DOMAIN}/www/public; | |
index index.php index.html index.htm; | |
server_name ${OZZPY_DOMAIN} www.${OZZPY_DOMAIN}; |