Skip to content

Instantly share code, notes, and snippets.

@0q98ahdsg3987y1h987y
0q98ahdsg3987y1h987y / example.com-ssl.conf
Created May 9, 2020 13:56
socket io + apache2 config
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin [email protected]
ServerName example.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/socket.io [NC]
body {
box-sizing: border-box;
font-size: 16px;
background: url('image/triangle.svg') no-repeat fixed 100%/100vh;
}

Keybase proof

I hereby claim:

  • I am nuel on github.
  • I am nuel (https://keybase.io/nuel) on keybase.
  • I have a public key ASDJhEAbRdXANaORCKpxQ89QAOQ7s0-nn8utuQ8Md84Nugo

To claim this, I am signing this object:

val brexitArticles: Array<String> = arrayOf(
"https://www.express.co.uk/news/politics/1075847/brexit-news-latest-update-deal-uk-EU-theresa-may-vote-plan-b",
"https://www.express.co.uk/news/uk/1075687/Brexit-news-UK-EU-latest-no-deal-vote-Theresa-May-European-Union-referendum-Corbyn",
"https://www.express.co.uk/news/uk/1075382/Brexit-news-UK-EU-Nigel-Farage-Theresa-May-European-Union-latest",
"https://www.express.co.uk/news/uk/1075708/no-deal-brexit-poll-second-referendum-theresa-may-deal-wto-brexit",
"https://www.express.co.uk/news/uk/1075901/brexit-latest-Queen-could-ultimately-decide-Brexit",
"https://www.express.co.uk/news/uk/1075873/Brexit-news-UK-EU-Theresa-May-deal-European-Union-latest-Conservative-Party",
"https://www.express.co.uk/news/politics/1075756/brexit-latest-news-david-cameron-stupid-brexit-referendum-donald-tusk-bbc-documentary",
"https://www.express.co.uk/news/uk/1075718/Brexit-news-UK-EU-latest-deal-vote-Theresa-May-Jean-Claude-Juncker-Rees-Mogg-LBC",
"https://www.express
import org.openrndr.Fullscreen
import org.openrndr.KEY_SPACEBAR
import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.draw.colorBuffer
import org.openrndr.draw.isolatedWithTarget
import org.openrndr.draw.renderTarget
import org.openrndr.draw.shadeStyle
import org.openrndr.filter.blur.BoxBlur
import org.openrndr.math.Vector3
java.io.File folder;
String[] filenames;
ArrayList<String> filteredFilenames = new ArrayList<String>();
PImage[] imgs;
void setup() {
size(800, 800);
frameRate(2);
// Initialize arrays

Keybase proof

I hereby claim:

  • I am neufv on github.
  • I am neufv (https://keybase.io/neufv) on keybase.
  • I have a public key whose fingerprint is 26A7 6FCD 24E3 41C5 6923 8683 9859 7247 7D7A F35D

To claim this, I am signing this object:

// constants
final int element1Width = 200;
final int element1Height = 400;
final int element2Width = 115;
final int element2Height = 400;
final int basicStrokeColor = #FFD67C;
void setup () {
// Size and color
size(594, 840, P3D);

Atom config

This is my Atom config as synced by hackafe/sync-settings.

@0q98ahdsg3987y1h987y
0q98ahdsg3987y1h987y / prevent-window-close-in-electron.coffee
Created December 2, 2015 13:20
Prevent Electron from closing the main window if there are unsaved changes
# In main.coffee
closeAfterSave = false
mainWindow.on 'close', (event) ->
if !closeAfterSave
event.preventDefault()
mainWindow.webContents.send 'closingWindow'
return