Skip to content

Instantly share code, notes, and snippets.

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

Diego Yungh DiegoYungh

🏠
Working from home
  • Yungh Software
  • Brazil
View GitHub Profile
@DiegoYungh
DiegoYungh / machine.js
Created February 11, 2022 17:08
Generated by XState Viz: https://xstate.js.org/viz
const encoderStates = {
initial: 'streaming',
states: {
streaming: {
on: {
ENCODER_STOPPED: 'paused',
},
},
paused: {
on: {
@DiegoYungh
DiegoYungh / index.html
Created December 6, 2017 18:07
Base html file where the scripts are included
<!doctype html>
<html{% block html_class %}{% endblock %}>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{% block title %}{% endblock %} - plug.dj</title>
<link rel="dns-prefetch" href="//cdn.plug.dj">
<link rel="dns-prefetch" href="//godj.plug.dj">
<link rel="dns-prefetch" href="//csa.plug.dj">
<link rel="dns-prefetch" href="//fonts.googleapis.com">
<link rel="dns-prefetch" href="//cdn.optimizely.com">
[
{
"fields": {
"sections": "[{\"type\": \"free_content\", \"value\": {\"content\": \"<nav>\\r\\n <div class=\\\"container\\\">\\r\\n <div class=\\\"row\\\">\\r\\n <div class=\\\"col-xs-12\\\">\\r\\n <table width=\\\"100%\\\">\\r\\n <tr>\\r\\n <td width=\\\"30%\\\">\\r\\n <a href=\\\"#praambel\\\" data-smooth>Pr\\u00e4ambel</a>\\r\\n </td>\\r\\n <td width=\\\"35%\\\">\\r\\n <a href=\\\"#grundsatze\\\" data-smooth>Grunds\\u00e4tze</a>\\r\\n </td>\\r\\n <td width=\\\"30%\\\">\\r\\n <a href=\\\"#kontakt\\\" data-smooth>Kontakt</a>\\r\\n </td>\\r\\n <td width=\\\"5%\\\">\\r\\n <a href=\\\"http://crowdsourcing-code.com\\\" title=\\\"Switch to English\\\">\\r\\n
@register.assignment_tag
def cache_obj(obj):
"""Cache given obj"""
if not obj:
return ""
return obj
@register.assignment_tag
def get_value_from_dict(obj, key, *args, **kwargs):
"""Get value from target object/dict"""
# coding: utf-8
import os
import importlib
import random
import logging
from flask.ext.script import Command
logger = logging.getLogger()
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-2179611-1']);
_gaq.push(['_setDomainName', 'jovempanfm.com.br']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
_gaq.push(['affiliate._setAccount', 'UA-9449229-32']);
_gaq.push(['affiliate._trackPageview']);
@DiegoYungh
DiegoYungh / gist:9644166
Created March 19, 2014 15:28
zica do pantano de carregamento do widget
JINJA DEBUG: _themes/cosmo/admin/model/create.html
JINJA DEBUG: get_template -> _themes/cosmo/admin/model/create.html
JINJA DEBUG: _load_template -> _themes/cosmo/admin/model/create.html
LOADER DEBUG: load -> _themes/cosmo/admin/model/create.html
LOADER DEBUG: get_source -> C:\Desenvolvimento\Web\ytgamers\quokka\themes\cosmo\templates\admin\model\create.html
COMPILER DEBUG: _themes/cosmo/admin/model/create.html
JINJA DEBUG: get_template -> _themes/cosmo/admin/master.html
JINJA DEBUG: _load_template -> _themes/cosmo/admin/master.html
<div id="dtml_banner" style="position:absolute; top:0; left:50%; z-index:99; margin-left:-200px">
<!-- "IstoE_Din_Home_DHTML" (section "IstoE_Din_Home") -->
<script type="text/javascript" src="http://eas21.emediate.eu/EAS_tag.1.0.js"></script>
<script type="text/javascript" src="http://eas21.emediate.eu/eas?cu=6937;cre=mu;js=y;target=_blank"></script>
<noscript>
<a target="_blank" href="http://eas21.emediate.eu/eas?cu=6937;ty=ct"><img src="http://eas21.emediate.eu/eas?cu=6937;cre=img" alt="EmediateAd" width="1" height="1" style="border:0px"/></a>
</noscript>
</div>
<div class="row header--info">
<div class="small-5 columns teamA">
<img class="teamAImage" src="{{team-a.image}}" alt="" width="30">
<h3>{{match.localteam.title}}</h3>
</div>
<div class="small-2 columns versus" align="center">
<p>
<span class="localteamscore">{{match.localteam.score}}</span>X
<span class="visitorteamscore">{{match.visitorteam.score}}</span>
</p>
<div class="small-6 six columns">
<div class="row home-comentarista table-box box rodadas">
<div class="small-12 twelve columns item">
<div class="row title">
<div class="small-12 twelve columns">
<a href="">
<h5 class="font-bold">CHAVE {{index}}</h5>
</a>
<div class="box--divider"></div>
</div>