Skip to content

Instantly share code, notes, and snippets.

View choyan's full-sized avatar
🎯
Focusing

Zahidul Hossain choyan

🎯
Focusing
View GitHub Profile
@choyan
choyan / index.html
Created October 31, 2012 07:30
A CodePen by Matt Boldt. CSS3 & jQuery Calculator - Now fully functional! Saw this graphic posted on Forrst and decided to code it.
<div class="wrap">
<div class="cal">
<ul class="ctrls">
<li class="close"><a href="#"></a></li>
<li class="min"><a href="#"></a></li>
<li class="max"><a href="#"></a></li>
</ul>
<span class="title">Calculator</span>
@choyan
choyan / index.html
Created October 31, 2012 10:21
A CodePen by choyan. TEsting Transition
<div class="none">
choyan
</div>
@choyan
choyan / dabblet.css
Created November 29, 2012 10:33
curtain
/* curtain */
background-color: blue;
background-image: linear-gradient(33deg, #b00 3px, transparent 23px),
linear-gradient(155deg, #d02 23px, transparent 23px),
linear-gradient(375deg, #b00 23px, transparent 23px),
linear-gradient(155deg, #d00 23px, transparent 23px);
background-size: 58px 8px;
background-position: 0px 2px, 4px 35px, 29px 31px, 34px 6px;
@choyan
choyan / dabblet.css
Created December 15, 2012 08:45 — forked from MizR/dabblet.css
Pounding heart animation
/* Pounding heart animation */
body { text-align: center; background: #000; }
.wr {
margin:auto;
width:400px;
height:300px;
}
@keyframes diams1 {
from { transform:rotate(00deg); color:#c0c0c0; }
50% { transform: scale(2); }
@choyan
choyan / wired
Last active December 19, 2015 11:19
Wired Network Connection Necessary
Open the terminal and type in the following
ping 192.168.1.1
You should get replies not host not found or request timed out. I am assuming the 192.168.1.1 is your router's IP address.
If the above worked it means it's connected to the router. Next try ping google servers and see if you are able to
ping www.google.com
if that works you should be able to access the internet but if it doesn't there might be a problem with DNS. If so try pinging the IP address of google servers just to make sure it can be reached via IP address
@choyan
choyan / gist:6884351
Created October 8, 2013 13:04
Hibernate on ElementaryOS
To do so on terminal:
gksu gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
Replace gedit with your favorite editor’s command. This command will open a blank file. Copy and paste these lines:
[Enable Hibernate]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://npmjs.org/install.sh | sh

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@choyan
choyan / Preferences.sublime-settings
Last active September 1, 2017 18:12
Sublime Text 3 user preference
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
@choyan
choyan / .zshrc
Last active August 30, 2022 21:50
My oh-my-zsh settings for elementary OS
# =============================================================================
# Functions
# =============================================================================
powerlevel9k_random_color(){
printf "%03d" $[${RANDOM}%234+16] #random between 16-250
}
zsh_wifi_signal(){
local signal=$(nmcli -t device wifi | grep '^*' | awk -F':' '{print $6}')
local color="yellow"