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
<?php | |
$categoria = get_the_category(); | |
$nomeCategoria = $categoria[0]->cat_name; | |
?> | |
<h2>notícias <?php echo $nomeCategoria; ?> </h2> |
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
<form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>"> | |
<div><label class="screen-reader-text" for="s">Search for:</label> | |
<input type="text" value="" name="s" id="s" /> | |
<input type="submit" id="searchsubmit" value="Search" /> | |
</div> | |
</form> |
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
import pyscreenshot as ImageGrab | |
from time import strftime | |
import time | |
hora_atual = strftime('%H:%M') | |
i = 0 | |
while hora_atual != '15:54': | |
ImageGrab.grab_to_file('img-%d.png' % i) |
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
@startuml | |
left to right direction | |
:USUARIO: | |
rectangle cadastro { | |
:USUARIO: -- (CADASTRAR CONTA) | |
(CADASTRAR CONTA) ...|> (AUTENTICAR CONTA) : include | |
(CADASTRAR CONTA) <-- (CONTA COM FACEBOOK) | |
(CADASTRAR CONTA) <-- (CONTA COM TWITTER) | |
} |
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
{ | |
"auto_complete_triggers": | |
[ | |
{ | |
"characters": ".", | |
"selector": "source.python - string - comment - constant.numeric" | |
} | |
], | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"font_size": 11, |
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
Explicando o que é PlantUML → http://www.mediawiki.org/wiki/Extension:PlantUML | |
Documentação Caso de Uso → http://plantuml.sourceforge.net/usecase.html | |
Mostrando como rodar → http://plantuml.sourceforge.net/running.html | |
Os que eu uso para rodar: | |
→ http://www.codeuml.com/ | |
→ http://www.planttext.com/planttext |
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() { | |
$('a[href*=#]:not([href=#])').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | |
var target = $(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { | |
$('html,body').animate({ | |
scrollTop: target.offset().top | |
}, 1000); | |
return false; |
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
<?php if (comments_open()) : ?> | |
<div id="disqus_thread"></div> | |
<script type="text/javascript"> | |
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ | |
var disqus_shortname = '<example>'; // Required - Replace example with your forum shortname | |
/* * * DON'T EDIT BELOW THIS LINE * * */ | |
(function() { | |
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; | |
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; |
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
# old | |
@login_required | |
def undo_enrollment(request, slug): | |
course = get_object_or_404(Course, slug=slug) | |
enrollment = get_object_or_404( | |
Enrollment, | |
user=request.user, | |
course=course | |
) | |
if request.method == 'POST': |
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
#include <stdio.h> | |
float medescolar(float n1, float n2, float n3, float n4) { | |
// Cria variável que irá conter o valor da média | |
float media = 0; | |
// Cáculo simples da média: soma-se as notas e divide-se pela quantidade | |
// de notas | |
media = (n1 + n2 + n3 + n4) / 4; | |
return media; |
OlderNewer