Skip to content

Instantly share code, notes, and snippets.

View polaroi8d's full-sized avatar
🦎
FOSS is the future

Levente Orban polaroi8d

🦎
FOSS is the future
View GitHub Profile
@polaroi8d
polaroi8d / README.md
Last active October 22, 2019 08:35
How to build IoT.js

#How to build IoT.js

#####First of all you need to get the repositories. Source repositories

There is a script to help you build IoT.js called "build.py" in source repository.

@polaroi8d
polaroi8d / AllYouWantToKnowAboutBoards.md
Last active September 7, 2022 13:57
All you want to know about STM boards.

#Intro This is a step-by-step guide to show you how to build the mbed OS and JerryScript together into the STM32F4 and STM32F429ZI boards.

JerryScript is the lightweight JavaScript engine intended to run on a very constrained devices such as microcontrollers: only few kilobytes of RAM available to the engine (<64 KB RAM) constrained ROM space for the code of the engine (<200 KB ROM). The engine supports on-device compilation, execution and provides access to peripherals from JavaScript. If you want to know more about the JerryScript, check out its official project site.

@polaroi8d
polaroi8d / Makefile.nucleo
Created March 8, 2016 13:40
Nucleo Makefile
# Copyright 2015 Samsung Electronics Co., Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS
@polaroi8d
polaroi8d / robotika_rapid
Created April 25, 2016 17:12
Hanoi torony kötelező program - 2016 Robotika
MODULE Module1
CONST robtarget HOME:=[[574.413415721,0,657.490349582],[0.183012788,0.683012679,-0.683012679,-0.183012788],[-1,0,-1,0],[9E9,9E9,9E9,9E9,9E9,9E9]];
CONST robtarget left_1:=[[700,150.777816878,115.1],[0.698802999,0.053214185,0.080749775,0.708746847],[0,-2,-1,0],[9E9,9E9,9E9,9E9,9E9,9E9]];
CONST robtarget left_2:=[[700,150.380298069,70.1],[0.700021621,0.054177409,0.080168306,0.707536275],[0,-2,-1,0],[9E9,9E9,9E9,9E9,9E9,9E9]];
CONST robtarget left_3:=[[700,150.38022743,25.1],[0.700021741,0.054177395,0.080168457,0.70753614],[0,-2,-1,0],[9E9,9E9,9E9,9E9,9E9,9E9]];
CONST robtarget mid_1:=[[700,0,115.1],[0.700021772,0.054177414,0.080169161,0.707536029],[-1,-3,-1,0],[9E9,9E9,9E9,9E9,9E9,9E9]];
CONST robtarget mid_2:=[[700,0,70.1],[0.700022015,0.054177512,0.0801688,0.707535822],[-1,-3,-1,0],[9E9,9E9,9E9,9E9,9E9,9E9]];
CONST robtarget mid_3:=[[700,0,25.1],[0.700022147,0.05417743,0.080168535,0.707535728],[-1,-3,-1,0],[9E9,9E9,9E9,9E9,9E9,9E9]];
CONST robtarget right_1:=[[700,-149.962906942,115.1],
@polaroi8d
polaroi8d / alk_fejl_2zh_gyakorlas.md
Last active April 27, 2016 17:08
Alkalmazás fejlesztés 2 NAGY ZH gyakorlás

#Core:

Database elkészítése a feladat alapján

  • ddlben majd sqliet3 .read-el beolvassuk az új táblát
  • .schema-val tudjuk ellenőrizni

Model rétegben megcsináljuk az osztályt a CD-nek

  • public string Eloado { get; set; }
  • public int Ar { get; set }
  • public bool Ujdonsag { get; set; }
@polaroi8d
polaroi8d / server.c
Last active October 18, 2016 11:45
Using socket in C with structure sending // SERVER
/* tcpserver.c */
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
@polaroi8d
polaroi8d / client.c
Last active October 18, 2016 11:44
Using socket in C with structure sending // CLIENT
/* tcpclient.c */
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netdb.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
import szte.mi.tiles.AbstractTiles;
import java.io.StringWriter;
public class MyTiles extends AbstractTiles {
public MyTiles(int x, int y) {
super(x,y);
}
public boolean getTiling() {
@polaroi8d
polaroi8d / MyTiles.java
Last active November 16, 2016 20:35
@ai Tiles
import szte.mi.tiles.AbstractTiles;
import java.io.StringWriter;
public class MyTiles extends AbstractTiles {
static int typ = 0;
static int lehetoseg = 0;
public MyTiles(int x, int y) {
super(x,y);