Skip to content

Instantly share code, notes, and snippets.

View angelceballos's full-sized avatar
🏠
Working from home

Angel Ceballos angelceballos

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am martecloud on github.
  • I am martecloud (https://keybase.io/martecloud) on keybase.
  • I have a public key ASCniOy-h6fJKKjYRC6V_hWVhMyG-Z-4cltpHUN21HaWhgo

To claim this, I am signing this object:

@angelceballos
angelceballos / drupal-
Created May 19, 2014 16:05
When including external javascript and CSS files in Drupal it's best practice to do this via your themes .info file. The reason is that the files will then be able to take advantage of the bandwidth optimisation performance settings, ie. they will be aggregated and compressed. Your .info file can be found at /sites/all/themes/yourtheme/yourTheme…
; Custom javascript files.
scripts[] = js/customScripts.js
; Custom css files.
stylesheets[all][] = css/generalCSS.css
stylesheets[screen][] = css/screenSpecificCSS.css
stylesheets[print][] = css/printSpecificCSS.css
curl -O http://sketchtool.bohemiancoding.com/sketchtool-latest.zip
unzip sketchtool-latest.zip
sudo cp sketchtool/sketchtool /usr/bin/sketchtool
sudo cp -R sketchtool/sketchtool\ resources.bundle/ /usr/bin/sketchtool\ resources.bundle/
rm -r sketchtool/
rm sketchtool-latest.zip
<p>
<a href="mailto:chriscoyier@gmail.com">
chriscoyier@gmail.com
</a>
</p>
<p class="phone">
555-555-5555
</p>
/* Empty Elements */
div:empty, span:empty, li:empty, p:empty, td:empty, th:empty
{ padding: 20px; border: 5px dotted yellow !important; }
/* Empty Attributes */
*[alt=""], *[title=""], *[class=""], *[id=""], a[href=""], a[href="#"]
{ border: 5px solid yellow !important; }
/* Deprecated Elements */
applet, basefont, center, dir, font, isindex, menu, s, strike, u
p:first-child:first-letter { float: left; color: #903;
font-size: 75px; line-height: 60px; padding-top: 4px;
padding-right: 8px; padding-left: 3px; font-family: Georgia; }
@angelceballos
angelceballos / ivy-leaf.css
Created May 1, 2014 01:24
End Articles with Ivy Leaf
p:last-child:after {
content: "\2766"; /* Here comes the ivy leaf */
font-size: 150%; /* Makes the leaf larger than the normal text */
padding-left: 10px; /* Leaf won't clash with the last letter of the text */
float: right; /* Horizontal position is set to the right edge of the column */
position: relative; /* This is just an homage to Albert Einstein */
top: 15px /*Vertical distance from the last line of text */
}
/* My personal second attempt at it with better results */
.amp {
font-family: Baskerville, 'Goudy Old Style', Palatino, 'Book Antiqua', serif;
font-style: italic;
font-weight: normal;
}
/* individual rounded corners */
#Bottom_Right {
height: 65px;
width:160px;
-moz-border-radius-bottomright: 50px;
border-bottom-right-radius: 50px;
}
#Bottom_Left {
.pull-quote {
width: 200px;
float: right;
margin: 5px;
font-family: Georgia, "Times New Roman", Times, serif;
font: italic bold #ff0000 ;
}