Skip to content

Instantly share code, notes, and snippets.

View Hoffs's full-sized avatar
🦩
doom

Ignas Hoffs

🦩
doom
  • Lithuania
View GitHub Profile
@Hoffs
Hoffs / Seizure-Inducer.markdown
Created January 18, 2015 15:05
Seizure Inducer
{
"Commands": {
"points": "!points",
"creator": "!creator",
"banme": "!banme",
"timeoutenemy": "!timeoutenemy",
"baconspam": "!baconspam",
"game": "!game",
"title": "!title"
},
div {
&.spinner {
&.success:before, &.success:after {
border-color: rgb(45, 191, 45);
-webkit-animation: spinner 1.2s cubic-bezier(.19,.65,.67,.91) 0s 1;
animation: spinner 1.2s cubic-bezier(.19,.65,.67,.91) 0s 1;
}
&.success:after {
content: 'F';
# App
using System;
using ClassLibrary1;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `hndatabase`
--
-- --------------------------------------------------------
--
@Hoffs
Hoffs / login.php
Created April 3, 2017 21:10
HotNeighbour/views/site/login.php
<?php
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model app\models\LoginForm */
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
$this->title = 'Login';
@Hoffs
Hoffs / register.php
Created April 3, 2017 21:11
HotNeighbour/views/site/register.php
<?php
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model app\models\LoginForm */
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
$this->title = 'Register';
$this->params['breadcrumbs'][] = $this->title;
@Hoffs
Hoffs / qnm.js
Last active May 15, 2017 18:52
questionnaire no more
var count = $(".answer").length;
var i = 0;
$(".answer").each(function () {
i++;
$(this).find('.answer-item').not('[type=hidden]').children('input').prop('checked', true);
if (i == count) {
$('button:contains("Tęsti"), button:contains("Pateikti")').trigger('click');
}
});
@Hoffs
Hoffs / roulette.py
Created May 18, 2017 18:00
Double up doesn't work
import random
allbank = 0
alliter = 0
allmax = 0
itt = 0
it = 10000
for i in range(0, it):
itt += 1
@Hoffs
Hoffs / tetris.bat
Last active July 31, 2024 03:40
Tetris in batch
@echo off
color 4F
title Tetris by
setlocal enabledelayedexpansion
mode con: cols=32 lines=35
set "hashBar=############"
set "ESpace= "
set "LowestYFig=1"