This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace path\to\this; | |
/** | |
* Lietuviškų vardų linksniai. | |
*/ | |
trait Linksniai { | |
/** | |
* Vardų transformacija |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print('\nBooting...\n'); | |
# Import modules | |
import MySQLdb; | |
import matplotlib.pyplot as plt; | |
from math import pi; | |
def bye(): | |
print("\nDone, shutting down...\n"); | |
exit(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* ---------------------------------------------------------------------- | |
* VueJS + Buefy handler for displaying toast and snackbar notifications | |
* API: https://buefy.github.io/#/documentation/toast | |
* depends on VueJS and Buefy (and Bulma) | |
* | |
* inspired by JACurtis notifiation.blade.php/LaraFlash Package | |
* https://gist.github.com/jacurtis/9fa687e8f7512bb197decce7ffc30091 | |
* ---------------------------------------------------------------------- | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<h2>Timetable Generator</h2> | |
<div class="bar"> | |
<input type="text" placeholder="start" v-model="startTime" /> | |
<input type="text" placeholder="end" v-model="endTime" /> | |
<input type="text" placeholder="length" v-model="length" /> | |
<input type="number" placeholder="number" v-model="slots" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>{text_here}</title> | |
<style> | |
html, body { | |
height: 100%; | |
} | |
body { | |
margin: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| Pagination Language Lines | |
|-------------------------------------------------------------------------- | |
| | |
| The following language lines are used by the paginator library to build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>PLACEHOLDER</title> | |
<link href="https://fonts.googleapis.com/css?family=Mali:200" rel="stylesheet" type="text/css"> | |
<style> | |
html, body { | |
height: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang plai | |
(define-type FWAE | |
[num (n number?)] | |
[add (lhs FWAE?) (rhs FWAE?)] | |
[sub (lhs FWAE?) (rhs FWAE?)] | |
[with (name symbol?) (named-expr FWAE?) (body FWAE?)] | |
[id (name symbol?)] | |
[fun (param symbol?) (body FWAE?)] | |
[app (fun-expr FWAE?) (arg-expr FWAE?)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener( | |
'DOMContentLoaded', | |
(): void => { | |
const container: HTMLDivElement = document.querySelector( | |
'[data-instagram]' | |
); | |
if (!container) { | |
console.log('No Instagram container found'); | |
return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface FloatingLabelConstructor { | |
fieldContainerClass: string; | |
activeFieldClass: string; | |
} | |
class FloatingLabel { | |
private fields: NodeListOf<HTMLDivElement>; | |
private className: string; | |
constructor({ fieldContainerClass, activeFieldClass } = {} as FloatingLabelConstructor) { |
OlderNewer