This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
background no | |
use_xft yes | |
xftfont Droid Sans Mono:size=8 | |
xftalpha 0.1 | |
update_interval 1.0 | |
total_run_times 0 | |
own_window yes | |
own_window_class Conky | |
own_window_type desktop | |
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filetype on | |
set nocompatible | |
set nu | |
set viminfo^=! | |
set tabstop=2 | |
set bs=2 | |
set shiftwidth=2 | |
set softtabstop=2 | |
set nocp incsearch | |
set ai |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
<!-- | |
$('#micropost_content').live('keyup keydown', function(e) { | |
var maxLen = 140; | |
var left = maxLen - $(this).val().length; | |
$('#char-count').html(left); | |
}); | |
//--> | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= form_for @micropost do |f| %> | |
<%= render 'shared/error_messages', :object => f.object %> | |
<div class="field"> | |
<%= f.text_area :content %> | |
</div> | |
<div class="actions"> | |
<%= f.submit "Submit" %> | |
</div> | |
<% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SPCHAR = %w['~`!@#$%^&*()_-+={[}]|\:;"<,>.?/'].shuffle[0..2] | |
UPCHAR = ('A'..'Z').to_a.shuffle[0..4] | |
CHAR = ('a'..'z').to_a.shuffle[0..4] | |
NUMCHAR = ('0'..'9').to_a.shuffle[0..4] | |
def random_string(length=15) | |
s = SPCHAR | |
c = CHAR | |
u = UPCHAR | |
n = NUMCHAR | |
@password = s + c + n + u |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach(ITEmployee itemployee in IT) | |
{ | |
if(Hungry) | |
{ | |
GotoBreakRoomForDonuts(" :) "); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Title 'openSUSE Current OSS' | |
Repo 'http://download.opensuse.org/distribution/openSUSE-current/repo/oss/' | |
Title 'openSUSE Current non-OSS' | |
Repo 'http://download.opensuse.org/distribution/openSUSE-current/repo/non-oss/' | |
Title 'openSUSE Current updates' | |
Repo 'http://download.opensuse.org/update/openSUSE-current/' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo zypper ar \ | |
http://download.opensuse.org/distribution/openSUSE-current/repo/oss/ \ | |
'openSUSE Current OSS' | |
sudo zypper ar \ | |
http://download.opensuse.org/distribution/openSUSE-current/repo/non-oss/ \ | |
'openSUSE Current non-OSS' | |
sudo zypper ar \ | |
http://download.opensuse.org/update/openSUSE-current/ \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zypper ar --refresh \ | |
http://download.opensuse.org/repositories/openSUSE:/Tumbleweed/standard/ \ | |
Tumbleweed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use [IT] | |
GO | |
Select [DunkinDonuts] | |
From [BreakRoom] | |
Where [Hungry] = 1 | |
and CaresAboutCalories in ('Don''t Care', 'Negliable') | |
GO | |
Print 'Happy Thanksgiving' |