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
import React from 'react'; | |
import YouTube from 'react-youtube'; | |
import './App.css'; | |
function App() { | |
const opts = { | |
playerVars: { } | |
// https://developers.google.com/youtube/player_parameters | |
} |
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
# -*- coding: utf-8 -*- | |
import csv, json, codecs, sys | |
from HTMLParser import HTMLParser as html | |
import html2text | |
reload(sys) | |
sys.setdefaultencoding('utf-8') | |
html = html() | |
__ = html2text.HTML2Text() |
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
from subprocess import call, Popen, PIPE | |
import json | |
id_call = Popen(["wp", "--path=/var/www/html/", "post", "list", "--format=ids"], stdout=PIPE) | |
ids = id_call.stdout.read().split(' ') | |
marker_id_call = Popen(["wp", "post", "list", "--post_type='marker-icon'", "--format=ids"], stdout=PIPE) | |
marker_ids = marker_id_call.stdout.read().split(' ') | |
att_id_call = Popen(["wp", "post", "list", "--post_type='attachment'", "--format=json", "--fields=ID,post_parent"], stdout=PIPE) | |
att_ids = json.loads(att_id_call.stdout.read()) |
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
import android.os.Parcel; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.mockito.invocation.InvocationOnMock; | |
import org.mockito.stubbing.Answer; | |
import static org.mockito.Matchers.anyInt; | |
import static org.mockito.Matchers.anyLong; | |
import static org.mockito.Matchers.anyString; | |
import static org.mockito.Mockito.doAnswer; |
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
// Array to list snippet | |
// Returns a ArrayList of String! Great for inline initialization of Lists and its implementations | |
Arrays.asList("oi", "tudo", "bem", | |
"Jovem!", "Sucesso aí?", "É nois que voa bruxão") |
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
#!/usr/bin/env python | |
import sys | |
import subprocess | |
import csv | |
def search(argv): | |
for arg in argv: | |
if arg != 'ft.py' and arg != 'python' and arg != './ft.py': | |
subprocess.call(['/bin/grep', '-i', arg, 'trans.csv']) |
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
$("a[href='#topo']").click(function(){ | |
$("html,body", window.parent.document).scrollTop(0); | |
return false; | |
}); | |
$("#lista_indice_gramatica ul li a").each(function(){ | |
$("html, body", window.parent.document) | |
.scrollTop($($(this).attr("href")).offset().top); | |
}); |
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
<?php | |
/* | |
* Plugin Name: Custom E-mail | |
* Description: Enabling this module will initialize custom e-mails. You will then have to configure the settings via the "E-mail" tab. | |
* | |
* Holds Theme My Login Custom E-mail class | |
* | |
* @package Theme_My_Login | |
* @subpackage Theme_My_Login_Custom_Email | |
* @since 6.0 |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |