Skip to content

Instantly share code, notes, and snippets.

View viktor-yakubiv's full-sized avatar
🇺🇦

Viktor Yakubiv viktor-yakubiv

🇺🇦
View GitHub Profile
@sudodoki
sudodoki / Наукпоп_подкасти.md
Created January 10, 2023 12:39
🇺🇦 Наукпоп подкасти (теоретично)

Наче наупчоп зі Spotify

але місцями або айті, або більше інтерв'ю | умовно сортовано по релевантності | не всі досі виходять, деякі на 1-2 епізоди із старих нерелевантних дропнув | відфільтровано по тегам + мові uk з метаопису

@ffoodd
ffoodd / improved-sr-only.markdown
Last active July 26, 2024 04:45
Improved .sr-only

Improved .sr-only

Theorically bulletproof CSS class for visually hide anything and keep it accessible to ATs.

A Pen by ffoodd on CodePen.

License.

@zhoujiealex
zhoujiealex / gulpfile.js
Last active April 19, 2018 02:29
sample of gulpfile.js for hexo generate blog, compress public files
/* Refrences:
1. http://notes.iissnan.com/2016/publishing-github-pages-with-travis-ci
2. https://github.com/chrisjlee/hexo-theme-zurb-foundation/blob/e82f45a82bbaaee063bcb1298cd9793575afb142/gulpfile.js
3. https://github.com/gulpjs/gulp/blob/master/docs/recipes/delete-files-folder.md
4. https://hexo.io/api/
5. https://github.com/iissnan/theme-next-docs/blob/master/.travis.yml
*/
var gulp = require('gulp');
var minifycss = require('gulp-clean-css');
@chitan
chitan / WsChatServlet.java
Created July 7, 2012 01:44
How to use WebSocket of Tomcat
//This sample is how to use websocket of Tomcat.
package wsapp;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.util.ArrayList;
import org.apache.catalina.websocket.MessageInbound;
import org.apache.catalina.websocket.StreamInbound;
import org.apache.catalina.websocket.WebSocketServlet;
@abishur
abishur / menu_launcher.py
Last active May 15, 2024 03:38
A simple menu system using python for the Terminal (Framebufer)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Topmenu and the submenus are based of the example found at this location http://blog.skeltonnetworks.com/2010/03/python-curses-custom-menu/
# The rest of the work was done by Matthew Bennett and he requests you keep these two mentions when you reuse the code :-)
# Basic code refactoring by Andrew Scheller
from time import sleep
import curses, os #curses is the interface for capturing key presses on the menu, os launches the files
screen = curses.initscr() #initializes a new window for capturing key presses
curses.noecho() # Disables automatic echoing of key presses (prevents program from input each key twice)