Skip to content

Instantly share code, notes, and snippets.

View JoseRFJuniorLLMs's full-sized avatar
🎯
Focusing

Jose RF Junior JoseRFJuniorLLMs

🎯
Focusing
View GitHub Profile
--
-- 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
<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">
<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">
<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%;
@JoseRFJuniorLLMs
JoseRFJuniorLLMs / bo.ts
Created December 30, 2016 05:58 — forked from fabiogoll/bo.ts
[Angular2] Implementação da Paginação no projeto
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);
// 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)',
},
.gradle
/build/
!gradle/wrapper/gradle-wrapper.jar
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
#!/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):
#!/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
# 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