Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
Writing...

Hakan GÜLEN electropsycho

👨‍💻
Writing...
  • Türkiye Cumhuriyeti Milli Eğitim Bakanlığı
  • Türkiye
  • @electrophysco
View GitHub Profile
@MalloyDelacroix
MalloyDelacroix / PyQt5WindowChangeExample.py
Last active Sep 22, 2020
A PyQt5 example of how to switch between multiple windows.
View PyQt5WindowChangeExample.py
import sys
from PyQt5 import QtCore, QtWidgets
class MainWindow(QtWidgets.QWidget):
switch_window = QtCore.pyqtSignal(str)
def __init__(self):
QtWidgets.QWidget.__init__(self)
@VladoMS
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"?>
<configuration>
<system.webServer>
<staticContent>
<clientCache cacheControlMode="UseExpires" httpExpires="Tue, 19 Jan 2038 03:14:07 GMT" />
<mimeMap fileExtension=".js.gz" mimeType="application/javascript" />
</staticContent>
</system.webServer>
<location path="gz">
<system.webServer>
@frankdugan3
frankdugan3 / RPI3_kiosk.md
Last active Jun 4, 2019
Create a webapp kiosk with a Raspberry Pi 3
View RPI3_kiosk.md

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
jonyfs / JavaFXTrayIconSample.java
Created Oct 27, 2016 — forked from jewelsea/JavaFXTrayIconSample.java
Demonstrate using the System Tray (AWT) to control a JavaFX application.
View JavaFXTrayIconSample.java
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;
import java.io.IOException;
@hfalucas
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
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"?>
<configuration>
<system.webServer>
<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files">
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll"/>
<dynamicTypes>
<add mimeType="text/*" enabled="true"/>
<add mimeType="message/*" enabled="true"/>
<add mimeType="application/javascript" enabled="true"/>
<add mimeType="*/*" enabled="false"/>
@sukharevd
sukharevd / wildfly-install.sh
Last active Sep 15, 2020
Script to install JBoss Wildfly 10.x as service in Linux
View wildfly-install.sh
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 10.x
#more :http://sukharevd.net/wildfly-8-installation.html
#author :Dmitriy Sukharev
#date :2016-06-18T02:45-0700
#usage :/bin/bash wildfly-install.sh
#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
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 "http://www.nextti.com/"
#define MyAppExeName "Program.jar"
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
You can’t perform that action at this time.