Skip to content

Instantly share code, notes, and snippets.

View 10537's full-sized avatar

José Moreno 10537

View GitHub Profile
@10537
10537 / pls2audio.html
Created December 10, 2015 22:09 — forked from Offbeatmammal/pls2audio.html
HTML5, JavaScript to load a .pls file to <audio> tag. Uses error and ended events to move to the next item
<! DOCTYPE html>
<html>
<head>
<title>PLS Processor</title>
<!-- needed for IE9 to ensure it treats page as HTML5 properly -->
<meta http-equiv="X-UA-Compatible" content="IE=9" >
</head>
<body>
<p>Audio PLS processor<p>
<audio id="audio" controls="controls"></audio >
@10537
10537 / Odoo MRP20170719 Entry 001.md
Last active August 5, 2018 16:55
Producto manufacturado que no necesita ser almacenado, con lista de materiales Kit en donde uno o mas de sus componentes es manufacturado.

Hola a todos,

Esta entrada nace de un problema de configuración que tuve hace 3 días, en el escenario necesitaba configurar para un cliente, un producto que manufactura bajo pedido pero que no almacena ya que lo hace tomando otros productos que el produce para armarlo bueno supongamos que tengo estos 4 productos:

  1. Bolsas de Chocolates "Regalo Sorpresa" (Manufacturado)
  2. Bolsas de Regalo (Comprado)
  3. Chocolate Negro 70% (Manufacturado)
  4. Chocolate Negro 65% (Manufacturado)
@10537
10537 / new_class.kt
Last active August 2, 2017 21:31
Become a Kotlin Programmer Part 6 - Creating a new class
class Human() {
// Here the body of the class
}
@10537
10537 / add_methods.kt
Created August 2, 2017 21:32
Become a Kotlin Programmer Part 6 - Adding methods in your class
class Human() {
fun Walk(){
println("Walking...")
}
fun Run(){
println("Running...")
}
@10537
10537 / initializators.kt
Created August 2, 2017 21:34
Become a Kotlin Programmer Part 6 - Init Values
class Human(val name: String, val color: String, val height: Float, var age: Integer){
...
}
@10537
10537 / class_with_init_values.kt
Created August 2, 2017 21:36
Become a Kotlin Programmer 6 - Complete Class with init values
class Human(val name: String, val color: String, val height: Float, var age: Integer): Character() {
var head_armor = false
var body_armor = false
var boots_armor = false
var weapon = false
fun Walk(){
println("Walking...")
}
@10537
10537 / refined_class.kt
Created August 2, 2017 21:37
Become a Kotlin Programmer Part 6 - Refined Class
class Human(val name: String, val color: String,
val height: Float, var age: Integer): Character() {
var head_armor = false
var body_armor = false
var boots_armor = false
var weapon = false
fun Walk(){
println("Walking...")
}
@10537
10537 / main_call.kt
Created August 2, 2017 21:38
Become a Kotlin Programmer Part 6 - Main Call
fun main(args: Array<String>) {
val Player = Human("Iskender","Black",1.70, 30)
Player.Walk()
Player.Talk()
Player.Run()
Player.Eat()
Player.Learn("Meteor Punch Combo")
}
@10537
10537 / openclass_character.kt
Created August 2, 2017 21:40
Become a Kotlin Part 6 - Character Open Class Inheritance
open class Character(open var name: String) {
var healh = 100
fun Walk(){
println("Walking...")
}
fun Run(){
println("Running...")
}
@10537
10537 / human_class_with_inheritance.kt
Last active August 2, 2017 21:47
Become a Kotlin Programmer Part 6 - Class with Inheritance
class Human(name: String, val color: String,
val height: Double, var age: Int): Character(name) {
var head_armor = false
var body_armor = false
var boots_armor = false
var weapon = false
fun set_head_armor(){
head_armor = true
}