- Jump to definition =
Super+Click
- Jump to definition =
Control+Super+Alt+Up
- Go back =
Control+Super+Alt+Left
- Manual CodeIntel =
Control+Shift+space
This file contains 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
require 'thor/group' | |
class Startup < Thor::Group | |
no_tasks do | |
def confirm(method) | |
if $?.to_i == 0 | |
puts "#{method} executed successfully" | |
end | |
end | |
end |
This file contains 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
.flex-container{ | |
box-sizing: border-box; | |
padding: .5rem; | |
} | |
.flex-row{ | |
box-sizing: border-box; | |
@include display(flex); | |
@include box-orient(horizontal); |
This file contains 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
#Games | |
gnome-mines gnome-orca gnome-sudoku gnomine nautilus-sendto-empathy aisleriot brltty gnome-mahjongg | |
#Productivity | |
libreoffice thunderbird rhythmbox rhythmbox-client evolution zeitgeist telepathy evolution-data-server-online-accounts | |
#Utilities & Media | |
gnome-accessibility-themes totem brasero cheese cheese-common unity-control-center-signon usb-creator-gtk onboard gnome-orca unity-webapps-common gkbd-capplet ibus-pinyin grc signon-ui gnome-disk-utility ibus-pinyin foo2zjs | |
#Internet |
This file contains 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
source 'https://rubygems.org' | |
ruby "2.1.4" | |
gem 'rails', '4.1.8' | |
gem 'pg' | |
gem 'sass-rails', '~> 4.0.3' | |
gem 'uglifier', '>= 1.3.0' | |
gem 'coffee-rails', '~> 4.0.0' | |
gem 'jquery-rails' |
This file contains 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
#stubs | |
describe '#solution' do | |
it 'delegates to its clone' do | |
clone = double("clone") | |
solution = double("solution") | |
#prepares clone | |
allow(clone).to receive(:solution).and_return(solution) | |
participation = Participation.new(clone:clone) |
This file contains 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
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ | |
} | |
/* Smartphones (landscape) ----------- */ | |
@media only screen | |
and (min-width : 321px) { |
This file contains 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
EnergySaver = (function(){ | |
return{ | |
NAME: "Energy Saver", | |
VERSION: 1.0, | |
calculate: function(formSelector, peakDemand, electricalDemand, totalBill){ | |
var peakDemand = $(peakDemand); | |
var electricalDemand = $(electricalDemand); |
This file contains 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
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title></title> | |
<meta name="keywords" content=""> | |
<meta name="description" content=""> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta http-equiv="Content-Style-Type" content="text/css"> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> |
This file contains 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
function obj_present($resource, $value){ | |
if(isset($resource[$value]) || $resource[$value] != '0'){ | |
return $resource[$value]; | |
} | |
} | |
function image_tag($image_data) { | |
echo "<img src='" . img::getImg($image_data, 1) . "'>"; | |
} |
OlderNewer