Skip to content

Instantly share code, notes, and snippets.

@zeisler
zeisler / gist:ed4784f95b8ec4061392
Created March 1, 2015 21:05
How to Delete your hard drive in Ruby
$ sudo irb
irb(main):002:0> require 'fileutils'
=> true
irb(main):003:0> FileUtils.rm_rf("#{nil}/")

Eyestrain Buster

This is a great exercise for relieving tired, strained eyes. The exercise may feel awkward at first, but with practice you will be able to relieve your eyestrain in just a few short minutes.

  • Gently slide the undersides of your thumbs across the upper rim of your eye sockets toward the temples.
  • Next massage the lower rim of your eye sockets with your index fingers working from the corner of your eyes toward the temples.
    • Repeat twice.
  • Now gently move your eyes from side to side, first to the right and then to the left, repeat three times.
  • Slowly move your eyes up toward the ceiling then down toward the floor, repeat three times.
  • Slowly and gently move your eyes in complete circles, three times clockwise and counter clockwise.
  • Relax by closing your eyes so that the eyelids barely touch together.
@staltz
staltz / introrx.md
Last active June 29, 2024 15:58
The introduction to Reactive Programming you've been missing
@Fank
Fank / beguidcalc.md
Last active December 23, 2023 12:26
ArmA 3 / DayZ-Standalone - BattlEye GUID calculation

md5("BE" (2 bytes) + 64-bit SteamID (8 bytes))

@jookyboi
jookyboi / css_resources.md
Last active April 26, 2024 13:06
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@almirsarajcic
almirsarajcic / steamid_conversion.php
Last active October 20, 2020 22:06
Functions used to convert 64bit Steam ID to 32bit and the other way around.
<?php
function convert_steamid_64bit_to_32bit($id)
{
$result = substr($id, 3) - 61197960265728;
return (string) $result;
}
function convert_steamid_32bit_to_64bit($id)
{