This file contains 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
-- | |
-- Abstract: PhysicsContact sample project | |
-- Demonstrates physics "event.contact" usage | |
-- | |
-- Sample code is MIT licensed, see http://www.coronalabs.com/links/code/license | |
-- Copyright (C) 2012 Corona Labs Inc. All Rights Reserved. | |
display.setStatusBar( display.HiddenStatusBar ) -- hide status bar | |
io.output():setvbuf('no') -- **debug: disable output buffering for Xcode Console |
This file contains 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
<link href="../paper-tabs/paper-tabs.html" rel="import"> | |
<link href="../paper-tabs/paper-tab.html" rel="import"> | |
<link href="../paper-toast/paper-toast.html" rel="import"> | |
<link href="../paper-input/paper-input.html" rel="import"> | |
<link href="../topeka-elements/category-icons.html" rel="import"> | |
<link href="../core-icon/core-icon.html" rel="import"> | |
<link href="../core-menu/core-submenu.html" rel="import"> | |
<link href="../core-item/core-item.html" rel="import"> | |
<link href="../core-pages/core-pages.html" rel="import"> |
This file contains 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
<link rel="import" href="../topeka-elements/category-images.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-icons/av-icons.html"> | |
<link rel="import" href="../paper-fab/paper-fab.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<polymer-element name="my-element"> |
This file contains 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
<link rel="import" href="../google-map/google-map-search.html"> | |
<link rel="import" href="../cool-clock/cool-clock.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |
This file contains 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 {Paginacao, PaginacaoRequest} from "../utils/paginacao"; | |
buscarClientePorFilial(filialId: number, pr: PaginacaoRequest): Promise<Paginacao> { | |
var self = this; | |
return new Promise<Paginacao>((resolve, reject) => { | |
var resposta: Resposta = new Resposta(TipoErro.ERROR, "Erro na busca de clientes!"); | |
if (filialId === 0) { | |
resposta.motivo.push("Código da filial não pode ser nula!"); | |
reject(resposta); |
This file contains 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
// taken from Tutorial: Creating an Angular2 Autocomplete by Leonardo Jines | |
// http://4dev.tech/2016/03/tutorial-creating-an-angular2-autocomplete/#comment-1609 | |
import {Component, ElementRef} from 'angular2/core'; | |
@Component({ | |
selector: 'my-app', | |
host: { | |
'(document:click)': 'handleClick($event)', | |
}, |
This file contains 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
.gradle | |
/build/ | |
!gradle/wrapper/gradle-wrapper.jar | |
### STS ### | |
.apt_generated | |
.classpath | |
.factorypath | |
.project | |
.settings |
This file contains 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
#!/usr/bin/env python3 | |
import math | |
crimes=[(5,4), (6,3), (5,3), (7,3)] | |
phi=5 | |
f, g= 2, 2 | |
b=3 | |
a=0 | |
for j in range(10): | |
for i in range(10): |
This file contains 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
#!/usr/bin/env python3 | |
#Rossmo's formula | |
import math | |
crimes=[(5,4), (6,3), (5,3), (7,3)] | |
phi=5 | |
f, g= 2, 2 | |
b=3 |
This file contains 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
# Data Preprocessing | |
# Importing the libraries | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
# Importing the dataset | |
dataset = pd.read_csv('Data.csv') | |
X = dataset.iloc[:, :-1].values |
OlderNewer