atom-text-editor {
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
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 | |
| # coding: utf-8 | |
| import os | |
| import sys | |
| import json | |
| import uuid | |
| import tempfile | |
| from flask import Flask, request, Response, g |
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 | |
| # -*- coding: utf-8 -*- | |
| import subprocess | |
| #Obtem o RETURN CODE de um programa, no caso o pwd | |
| value = subprocess.call('pwd') | |
| print value | |
| #Obtem a saída normal (stdout) de um programa, no caso o pwd |
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
| # Intent: interface to the GodotPayments module (remember to add the java path in the project settings android>modules ) | |
| "Intent.gd" | |
| extends Node | |
| # Interface for the GodotPayments module | |
| # To use extend this script and save the result on the Global singleton 'Data' | |
| const STATIC_RESPONSE_NONE = 0 | |
| const STATIC_RESPONSE_ALL = 1 |
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
| /** | |
| * js-timeout-polyfill | |
| * @see https://blogs.oracle.com/nashorn/entry/setinterval_and_settimeout_javascript_functions | |
| */ | |
| (function (global) { | |
| 'use strict'; | |
| if (global.setTimeout || | |
| global.clearTimeout || | |
| global.setInterval || |
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
| """ | |
| Python Singleton with parameters (so the same parameters get you the same object) | |
| with support to default arguments and passing arguments as kwargs (but no support for pure kwargs). | |
| And implementation for MongoClient class from pymongo package. | |
| """ | |
| from pymongo import MongoClient | |
| import inspect |
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 | |
| # USAGE: ./convert_report_to_cucumber_format.py --behave-report bdd/report.json [--json-schema cucumber-report-schema.json] | |
| import argparse, json, sys | |
| from jsonschema import Draft4Validator | |
| def main(argv=None): | |
| args = parse_args(argv) |
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
| # Available only in the 2.2 legacy branch and posterior versions | |
| func _ready(): | |
| # The old way: | |
| print("HELLO") # Code before the yield | |
| # Setting up the yield: | |
| var t = Timer.new() # Create a new Timer node | |
| t.set_wait_time(5.5) # Set the wait time | |
| add_child(t) # Add it to the node tree as the direct child |
// default exports
export default 42;
export default {};
export default [];
export default (1 + 2);
export default foo;
export default function () {}
export default class {}
export default function foo () {}
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
| /* | |
| Hoje iremos MUDAR a vida da pessoa que não te responde no whatsappp... | |
| Que tal enviar mensagens pra ela até obter uma resposta?! | |
| Sensacional não acha?! Mas, somos devs, correto?! Então vamos automatizar esse paranauê! | |
| Para utilizar: | |
| - Abra o web.whatsapp.com; | |
| - Selecione a conversa que você quer; | |
| - Abra o console e cole o código que está no gist; |
