Skip to content

Instantly share code, notes, and snippets.

View LuisHCK's full-sized avatar
🏠
Working from home

Luis J. Centeno LuisHCK

🏠
Working from home
View GitHub Profile
@LuisHCK
LuisHCK / select-file.vue
Created February 19, 2018 17:27 — forked from ecmel/select-file.vue
Vuetify Multiple File Select and Preview
<script>
export default {
name: 'VSelectFile',
model: {
prop: 'value',
event: 'change'
},
props: {
label: {
type: String,
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:id="@+id/cv"
>
<RelativeLayout
package prueba.com.prueba;
import android.app.TabActivity;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import java.util.ArrayList;
@LuisHCK
LuisHCK / TablaFrecuencias.java
Created July 28, 2017 19:21
Crear una tabla de frecuencias mediante a partir de un string. Uso => 1,2,3,4,5...n
package main;
import java.util.List;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
public class EntradaDatos {
sudo cp /etc/network/interfaces /etc/network/interfacesoriginal
sudp rm /etc/network/interfaces
sudo nano /etc/network/interfaces
----------------------------------
COPY
----------------------------------
auto lo
iface lo inet loopback
auto eth0
@LuisHCK
LuisHCK / installenv
Created May 11, 2017 15:59
LuisHCK's automatic enviroment installer
#!/bin/bash
echo " $(tput setaf 2)Welcome to LuisHCK's automatic enviroment installer"
echo "Updating system"
sudo apt-get update
sudo apt-get -y upgrade
echo "================================================"
echo "Get ADDI"
wget -o ~/addi https://gist.githubusercontent.com/LuisHCK/023fcef876e14f823e758b9774f67d62/raw/accec4053c88a43b618367c0dfac58963994e3c3/addi
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:luisjcenteno17@gmail.com
X-WR-TIMEZONE:America/Managua
BEGIN:VTIMEZONE
TZID:America/Managua
X-LIC-LOCATION:America/Managua
<!-- facebook Open Graph Metadatas -->
<meta content="your_facebook_app_id" property="fb:app_id">
<meta content="{{ site.title }}" property="og:site_name">
{% if page.title %}
<meta content="{{ page.title }}" property="og:title">
{% else %}
<meta content="{{ site.title }}" property="og:title">
{% endif %}
{% if page.title %}
<meta content="article" property="og:type">
@LuisHCK
LuisHCK / simple_form_mdl_wrappers.rb
Created January 15, 2017 21:28 — forked from anonymous/simple_form_mdl_wrappers.rb
Material Design Lite wrappers for Simple Form
# Simple wrappers for Material Design Lite text fields to use with SimpleForm (Rails)
SimpleForm.setup do |config|
config.wrappers :mdl_field, tag: 'div', class: 'mdl-textfield mdl-js-textfield', error_class: 'mdl-textfield__error' do |b|
b.use :html5
b.use :input, class: 'mdl-textfield__input'
b.use :label, class: 'mdl-textfield__label'
end
@LuisHCK
LuisHCK / addi
Last active March 29, 2017 23:33
Automatic DEB Downloader & Installer. Use this simple script to automatically download a .deb file from a url and install it. )Example: './addi https://webserver/file.deb'
#!/bin/bash
<<'end_long_comment'
Copyright 2017 Luis J. Centeno - luisjcenteno@live.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,