Skip to content

Instantly share code, notes, and snippets.

@nguyenj
nguyenj / index.html
Last active August 29, 2015 14:04
Base page markup
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Sticky Footers</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
@nguyenj
nguyenj / gist:46dd88c6c732e875afa2
Created June 2, 2015 02:22
A simple and basic SASS media query breakpoint mixin.
// Usages:
// div {
// @include media(800px) {
// ...
// }
// }
//
// Or with a customized breakpoint:
// $tall: break(min-height 600px);
// div {
@nguyenj
nguyenj / SassMeister-input.scss
Created November 13, 2015 15:36
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
@function rem($times_two) {
@return 2*$times_two
};
$container: 960px;
@nguyenj
nguyenj / flickr_json.html
Last active December 17, 2015 07:59
Flick json feed
<div class="image-feed">
<div class="loading">
<p>Loading...</p>
</div>
</div>
@nguyenj
nguyenj / index.html
Last active December 17, 2015 09:08
Random Flickr stream
<div id="photos" />
@nguyenj
nguyenj / bouncing balls
Last active December 20, 2015 17:29
Just click on the canvas to create new balls.
Ball[] balls = new Ball[1];
void setup() {
size(200, 200);
balls[0] = new Ball(50, 100, 16, 0.1);
}
void draw() {
background(0);
for ( int i = 0; i < balls.length; i++ ) {
@nguyenj
nguyenj / Node.pde
Last active December 24, 2015 21:49
class Node {
float x, y, r;
Node( float temp_x, float temp_y, float temp_r ) {
x = temp_x;
y = temp_y;
r = temp_r;
}
void display() {
@nguyenj
nguyenj / index.jade
Last active May 2, 2016 16:51
zqMRGW
select(id='mealType' name='mealType')
option(value='breakfast') Breakfast
option(value='lunch') Lunch
option(value='dinner') Dinner
option(value='snack') Snack
@nguyenj
nguyenj / _select.stylus
Created May 2, 2016 16:58
Styling selectors purely with CSS and minimal JS
select
appearance none
display block
width 100%
padding 0.5em 2em 0.5em 0.5em
border none
outline none
background-color transparent
&:focus,

Disable system beep on Debian 10.5 running Xfce

  1. Go to Session and Startup gui
  2. Click on Application Autostart tab
  3. Add a new item: name: System beep, description: Disable system beep, command: xset b off
  4. Close the Session and Startup control panel after adding the ^ item
  5. Execute xset b off in the terminal