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
| <ion-view view-title="Chat" > | |
| <div class="bars bar-header " style="color:white" ng-controller="tabs"> | |
| <div class="h1 title" >{{da.name}} {{da.topic}}</div> | |
| </div> | |
| <ion-content class="has-header" style="margin-bottom:30px"> | |
| <!-- <div class="list chat" on-scroll="onChatScroll(10)" ng-repeat="d in messages track by $index" ng-if="d.message.length>0"> --> | |
| <ol class="chat"> |
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
| class Savage{ | |
| constructor(){ | |
| console.log('savage model initailized!!'); | |
| } | |
| Linear_Regression ( data,label ){ | |
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
| class Savage{ | |
| constructor(){ | |
| console.log('savage model initailized!!'); | |
| } | |
| Linear_Regression ( data,label ){ | |
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
| // Install | |
| npm install @king__somto/savage; | |
| //run code | |
| const savage = require('./index') | |
| ////savage model initailized!! |
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 badguys =[{ | |
| name:'joker', | |
| ranking:1 | |
| }, | |
| { | |
| name:'bane', | |
| ranking:4 | |
| }, | |
| { | |
| name:' 2 face', |
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
| createDataSet=(maxNum)=>{ | |
| let inputs = [] | |
| let targets = [] | |
| for(let i = 0 ;i<=maxNum;i++){ | |
| let binarry = (i).toString(2) | |
| if (binarry.length>10){ | |
| throw 'this number has a binary representation longer than 10' |
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 {Savage,Savage_model} = require('./index') | |
| const mod = new Savage_model() | |
| let savage_ = new Savage() | |
| const math = require('mathjs') | |
| let data = mod.loadDataFromCSV('./data/finance.csv',true) | |
| data = mod.splitData(data,0.2) |
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 core from './core'; | |
| class State { | |
| constructor() { | |
| // all private varibale goes here | |
| const state = {}; | |
| const event = { | |
| change: [] | |
| }; |
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 React, { Component, StatelessComponent } from 'react' | |
| import Header from '../common/header' | |
| import Flow from '../common/Flow'; | |
| import Pagelister from '../common/pagelister'; | |
| import { useSelector,useDispatch } from 'react-redux' | |
| import ComponentLister from '../common/ComponentLister'; | |
| import Editor from '../common/Editor'; | |
| import UsedComponents from '../common/UsedComponents'; | |
| import Dragapp from './Dragapp'; | |
| import { Trash } from '../../react-page-maker/src'; |
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 ionicTemplates = require('./typeTemplate'); | |
| const iterate =(pageConstents) => { | |
| let imports = []; | |
| let templates = []; | |
| for (let j = 0; j < pageConstents.length; j++) { | |
| const pageContent = pageConstents[j]; | |
| const type = pageContent.type; |
OlderNewer