Skip to content

Instantly share code, notes, and snippets.

View debloper's full-sized avatar

Soumya Deb debloper

View GitHub Profile
@debloper
debloper / detect.js
Created July 20, 2012 16:27
Feature-detecting old IE version
if (!window.addEventListener && !!window.attachEvent) {
console.log("IE lt 9");
} else {
console.log("IE gte 9");
}
@debloper
debloper / xrandr.sh
Last active November 10, 2025 19:52
Add system unrecognized but monitor supported resolution in X
#!/bin/bash
# Copyright (c) 2021 Soumya Deb <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@debloper
debloper / index.html
Created December 31, 2011 10:24
CSS Borders: simpler implementation, coolness intact
<!DOCTYPE html>
<html>
<head>
<title>CSS Borders</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="zero"></div>
</body>
</html>
@debloper
debloper / index.html
Created December 14, 2011 11:37
Pulsating HTML Element with just pinchful of CSS Animation
<!DOCTYPE html>
<html>
<head>
<title>CSS Pulsator</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="pulsor">Pulsate!</div>
</body>
</html>
@debloper
debloper / snapChrome.html
Created August 9, 2011 15:31
Here's a li'l bit of HTML, CSS & JS - it hangs chrome irrecoverably; can you work out WHY? ;) B)
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>TRex - Let's Back Tweets Up</title>
<style>
body { background: #eee; }
form {
width: 640px; margin: auto; padding: 24px; display: table;
@debloper
debloper / clone.html
Created August 5, 2011 19:30
In a response to Chirag64's effort to CSS3-Animation [http://justinme.0fees.net] - and how to debulkify the AdobeEDGE/jQuery junks.
<!DOCTYPE HTML>
<html>
<!-- Just save it as a standalone HTML file and open in Firefox/Chrome/Safari -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Chiroo's Animation : Pirated by Debloper</title>
<style>
html, body { height: 100%; width: 100%; }
body { margin: 0; padding: 0; background: #EEE; }
@debloper
debloper / index.html
Created July 10, 2011 14:46
Complex Stripes with Repeating CSS Gradients - misses a soft color-blending!
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="style.css" />
<title>CSS Repeating Gradients</title>
</head>
<body>
<section></section>
</body>