Skip to content

Instantly share code, notes, and snippets.


Hakan GÜLEN electropsycho

  • Türkiye Cumhuriyeti Milli Eğitim Bakanlığı
  • Türkiye
  • @electrophysco
View GitHub Profile
MalloyDelacroix /
Last active Sep 22, 2020
A PyQt5 example of how to switch between multiple windows.
import sys
from PyQt5 import QtCore, QtWidgets
class MainWindow(QtWidgets.QWidget):
switch_window = QtCore.pyqtSignal(str)
def __init__(self):
VladoMS / Web.config
Created Jun 21, 2017 — forked from suhrab/Web.config
IIS serve pre-compressed static gzip files
View Web.config
<?xml version="1.0" encoding="utf-8"?>
<clientCache cacheControlMode="UseExpires" httpExpires="Tue, 19 Jan 2038 03:14:07 GMT" />
<mimeMap fileExtension=".js.gz" mimeType="application/javascript" />
<location path="gz">
frankdugan3 /
Last active Jun 4, 2019
Create a webapp kiosk with a Raspberry Pi 3

Raspberry Pi 3 B Kiosk

This guide utilizes Raspbian Jessie Lite as a base to create a kiosk that loads a single-page web app in the Chromium browser.

Prepare Micro SD Card

  1. Download and unzip Raspbian Jessie Lite.
  2. Copy the img file to the micro SD card. For platform-specific instructions, you can look here. If using Linux or MacOS, my preference is to use dd as described below.

Using dd

View webpack.config.js
let webpack = require('webpack');
let path = require('path');
module.exports = {
entry: {
app: './resources/assets/js/app.js',
vendor: ['vue', 'axios']
output: {
jonyfs /
Created Oct 27, 2016 — forked from jewelsea/
Demonstrate using the System Tray (AWT) to control a JavaFX application.
import javafx.application.*;
import javafx.geometry.Pos;
import javafx.scene.*;
import javafx.scene.control.Label;
import javafx.scene.layout.*;
import javafx.scene.paint.Color;
import javafx.stage.*;
import javax.imageio.ImageIO;
hfalucas / [1] main.js
Last active Jul 10, 2020
[Vue.js] Authentication and Authorization
View [1] main.js
* Think of this "main.js" file as your application bootstrap.
import Vue from 'vue'
import Resource from 'vue-resource'
import VueRouter from 'vue-router'
import routes from './routes'
import middleware from './middleware'
DWboutin / web.config
Created Jan 14, 2014
web.config GZIP compression Add the configuration shown below in the in web.config file. This configuration setup enable gzip compression on static and on dynamic content.
View web.config
<?xml version="1.0" encoding="UTF-8"?>
<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files">
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll"/>
<add mimeType="text/*" enabled="true"/>
<add mimeType="message/*" enabled="true"/>
<add mimeType="application/javascript" enabled="true"/>
<add mimeType="*/*" enabled="false"/>
sukharevd /
Last active Sep 15, 2020
Script to install JBoss Wildfly 10.x as service in Linux
#description :The script to install Wildfly 10.x
#more :
#author :Dmitriy Sukharev
#date :2016-06-18T02:45-0700
#usage :/bin/bash
#tested-version1 :10.0.0.CR3
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22
#tested-version2 :10.0.0.Final
levymoreira / SetupInnoSetupPostgreSql.iss
Created Apr 12, 2012
Exemplo Setup (INNO SETUP) instalação PostgreSql no Windows
View SetupInnoSetupPostgreSql.iss
; Levy Moreira - 12/04/2012
#define MyAppName "Program"
#define MyAppVersion "1.0"
#define MyAppPublisher "NextTi"
#define MyAppURL ""
#define MyAppExeName "Program.jar"
; NOTE: The value of AppId uniquely identifies this application.
You can’t perform that action at this time.