Skip to content

Instantly share code, notes, and snippets.

View devniel's full-sized avatar
🐲
hacking

Daniel Flores devniel

🐲
hacking
View GitHub Profile
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"launchMode": "maximized",
{ "InputSet" : {
"IBukrs": "0011",
"NavDirFami": [{
"NroDoc": "87989897",
"NroDocp": "23232323",
"TipVia": "01",
"Txvia": "PRUeba vi1",
"NumVia": "0001",
"Nrint": "ab",
"NroDpto": "110",
server {
listen 8080;
server_name localhost;
location / {
root C:\dev\CAMPOSOL\SEAFOOD\RegistroEntrada\www;
index index.html;
}
}
@devniel
devniel / gist:3202bae82cdce23fe0e5ac6b67f460be
Last active November 25, 2016 15:29
Printing with Cordova, ZBTPrinter plugin , JsBarcode, Jquery and html2canvas
// Extract from my printing strategy with Cordova and my Zbtprinter plugin fork
// https://github.com/devnieL/zbtprinter
var printer = {
address : "[MAC ADDRESS]"
}
$.get('./view/Printing/Templates/Receipt.html', function(template) {
function textToBase64Barcode(text) {
jQuery.sap.declare("com.pecsa.dev.services.Shipments");
jQuery.sap.require("com.pecsa.dev.services.Products");
jQuery.sap.require("com.pecsa.dev.models.Shipment");
jQuery.sap.require("com.pecsa.dev.models.Product");
var toMap = function(array, key1, key2) {
var map = {};
for (var i in array) {
map[array[i][key1] + "-" + array[i][key2]] = array[i];
}
// Setup axis chart
_chart.setHighlightPerTapEnabled(true);
_chart.setHighlightPerDragEnabled(true);
_chart.setPinchZoom(false);
_chart.setDescription(null);
_chart.setDoubleTapToZoomEnabled(false);
_chart.animateX(1000, Easing.EasingOption.EaseInOutBack);
package pe.com.primax.appprimax;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.location.Address;
import android.location.Geocoder;
@devniel
devniel / layout.less
Created October 6, 2015 19:51
braph layout grid v0.0.1
// LAYOUT
.layout-grid-12 {
width: 100%;
&::after {
display: block;
content: " ";
clear: both;
}
@devniel
devniel / test_clone.py
Last active August 27, 2015 18:57
clone a string with a percentage of similarity
# -*- coding: utf-8 -*-
from datetime import datetime, timedelta
import random
import unittest
import difflib
def ratio(original, changed):
changes = 0
u = zip(original, changed)
box-shadow: inset 0px 1px 5px rgba(0, 0, 0, 0.1);
-------------------
color: rgb(103, 103, 103);
font-family: 'Titillium-Light';
font-weight: 300;