Skip to content

Instantly share code, notes, and snippets.

View draganczukp's full-sized avatar

Przemek Dragańczuk draganczukp

View GitHub Profile
#/bin/bash
# Get the first device listed by kdeconnect-cli
DEVICE=$(kdeconnect-cli --id-only -a | sed '1q')
# Which qdbus service
SERVICE="org.kde.kdeconnect"
# Path depends on device
QPATH="/modules/kdeconnect/devices/$DEVICE/share"
package lab2;
import java.util.ArrayList;
import java.util.Scanner;
public class Cw4 {
public static void main(String[] args){
Scanner in = new Scanner(System.in);
package lab2;
import java.util.Scanner;
public class Cw6 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Podaj kwotę (max: 300 000");
int kwota = scanner.nextInt();
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
###################################
# IMPORTANT: Copy from old config #
###################################
# Path to your oh-my-zsh installation.
export ZSH="~/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
@draganczukp
draganczukp / example
Last active June 30, 2018 16:25
An example showing the syntax of my language
namespace Example; // Optional namespace, without it everything in this file would be global
import <stdlib> // Importing namespace
import <math.Random> // Importing specific class from namespace
class Example{ // Everything must be inside of a class, like in Java
int n; // Variables that don't recieve a value immediately when declared *MUST* have a type
arr = foo(10); // Automatic variable type
#include "main.h"
// Gościu nie umie nawet zapamiętać jak nazywa klasy
class Wektor{
private:
int x, y, z;
public:
Wektor(int x, int y, int z): x(x), y(y), z(z){}
Wektor(int x): x(x), y(0), z(0){}
.model tiny
.386
.data
wiersz db 255 dup (?)
.stack 100h
.code
start:
mov ax, @data
mov ds, ax
xor ax, ax
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <exception>
#include <sstream>
using namespace std;
class A{
public:
call plug#begin('~/.local/share/nvim/plugged')
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-fugitive'
" Plug 'tpope/vim-surround'
.model tiny
.386
.data
pytanie db "Podaj liczbe: $"
newline db 10,13,'$'
mniejsze db 10,13,"a<b$"
wieksze db 10,13,"a>b$"
rowne db 10,13,"a=b$"
.stack 100h
.code