Skip to content

Instantly share code, notes, and snippets.

@echo off
title Activate Microsoft Office 2016 ALL versions for FREE!&cls&echo ============================================================================&echo #Project: Activating Microsoft software products for FREE without software&echo ============================================================================&echo.&echo #Supported products:&echo - Microsoft Office Standard 2016&echo - Microsoft Office Professional Plus 2016&echo.&echo.&(if exist "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b ..\root\Licenses16\proplusvl_kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b ..\root\Licenses16\proplusvl_mak*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo ============================================================================&ech
@cesco89
cesco89 / Line.java
Created February 8, 2018 12:12
A random java Maze generator
public class Line {
public int posx;
public int posy;
public int dim1;
public int dim2;
public Line (int _posx, int _posy, int _dim1, int _dim2) {
this.posx = _posx;
this.posy = _posy;
@cesco89
cesco89 / Cell.java
Last active February 9, 2018 21:47
Java Maze Generator based on Maze Generation Algorithm --> https://en.wikipedia.org/wiki/Maze_generation_algorithm
import java.awt.*;
import java.util.ArrayList;
public class Cell {
public int i;
public int j;
public int x;
public int y;
public boolean[] walls = {true, true, true, true}; //top, right, bottom, left
@cesco89
cesco89 / GamePanel.java
Last active February 11, 2018 10:11
Java Game of life
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.ArrayList;
public class GamePanel extends JPanel implements ActionListener{
Timer timer = new Timer(1, this);
private static int width = Toolkit.getDefaultToolkit().getScreenSize().width;
private static int height = Toolkit.getDefaultToolkit().getScreenSize().height - 100;