Skip to content

Instantly share code, notes, and snippets.

View KenoLeon's full-sized avatar

Keno Leon KenoLeon

View GitHub Profile
@KenoLeon
KenoLeon / index.html
Last active May 11, 2017 06:28
WARP - Map Tests + ngMap
<div ng-app="App" ng-controller="ctrl" ng-cloak="false" layout="row" class="bbapp" md-theme="{{theme}}" md-theme-watch="true">
<div flex></div>
<div flex="100" md-whiteframe="5" class="bkgc">
<md-toolbar layout-padding layout="row" layout-xs="column" md-whiteframe="5" class="md-hue-2"> <b><i>NEAR CHOW !</i></b>
<span flex></span>
<md-switch ng-model="nightMode" ng-change="toggle()" aria-label="Night Mode">
<h6>Night Mode</h6>
</md-switch>
</md-toolbar>
<md-content layout-padding ng-if="render">
0x001301AD1556fD419Cf8970B174fE9AF34267eB8
@KenoLeon
KenoLeon / perceptron_example.py
Created August 2, 2018 22:46 — forked from anshmidt/perceptron_example.py
Simple example of perceptron
inputs = [0, 1, 0, 0]
weights = [0, 0, 0, 0]
desired_result = 1
learning_rate = 0.2
trials = 6
def evaluate_neural_network(input_array, weight_array):
result = 0
for i in range(len(input_array)):
layer_value = input_array[i] * weight_array[i]
def simpleFunction(arg):
return( 'I am a function, this is my argument: ' + arg )
print(simpleFunction('Argy'))
>>>
I am a function, this is my argument: Argy
|------------------ • ------------------|
def simpleFunctionNamedArgs(arg1='Argy', arg2=2):
import pandas as pd
import numpy as np
from tabulate import tabulate
import seaborn as sns
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
import matplotlib as mpl
import matplotlib.dates as mdates
@KenoLeon
KenoLeon / App.vue
Last active June 16, 2020 02:26
Simple APP.vue starter from VUE UI CLI
<!-- FILE: App.vue -->
<!-- NOTE: Install and Import bootstrap on main.js -->
<template>
<div id="app">
<bootsAlert/>
</div>
</template>
<script>
@KenoLeon
KenoLeon / App.vue
Last active June 16, 2020 20:11
Simple props in Vue
<!-- FILE: App.vue -->
<!-- NOTE: Import bootstrap on main.js -->
<template>
<div id="app">
<bootsAlert v-bind="{ dangerD: dangerData, warnignD: warningData }"/>
</div>
</template>
<script>
@KenoLeon
KenoLeon / App.vue
Created June 17, 2020 02:02
Parent and multiple child props in Vue
<!-- FILE: App.vue -->
<!-- NOTE: Import bootstrap on main.js -->
<template>
<div id="app">
<bootsAlert v-bind="{ alertD: alertData }"/>
<bootsList v-bind="{ listD : listData }"/>
</div>
</template>
@KenoLeon
KenoLeon / App_fragment.vue
Created June 17, 2020 19:57
Vue json call from App parent
<script>
import jQuery from 'jquery';
let $ = jQuery;
export default {
name: 'App',
components: {
tableComponent,
chartComponent
},