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
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
docker network remove $(docker network ls -q) |
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
<div id="wikiViewer" class="container"> | |
<div class="row no-gutters"> | |
<div class="col-12"> | |
<div class="search-wrapper"> | |
<form class="form-inline search-form"> | |
<div class="input-group col-xs-12 col-md-6 col-lg-6"> | |
<input type="text" class="form-control" v-model="query"> | |
<button class="btn btn-primary" type="submit" v-on:click="search"><i class="fa fa-search" aria-hidden="true"></i></button> | |
<button type="button" class="btn btn-danger" v-on:click="randomPage"><i class="fa fa-random" aria-hidden="true"></i></button> | |
</div><!-- ./ input-group --> |
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
<div class="container"> | |
<div class="row no-gutter"> | |
<div class="col-md-10 offset-md-1"> | |
<div id="quote-wrapper"> | |
<div class="row"> | |
<div class="col"> | |
<blockquote> | |
<p>{{ quote.text }}</p> | |
<footer>— {{quote.author}}</footer> | |
</blockquote> |
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
<div class="container" id="app"> | |
<div class="row justify-content-md-center"> | |
<div class="col"> | |
<form> | |
<fieldset> | |
<legend>Add new To-Do</legend> | |
<div class="form-group"> | |
<label>Title:</label> | |
<input type="text" class="form-control" v-model="newTask.title"> | |
</div> |
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 tkinter as tk # python3 | |
TITLE_FONT = ("Helvetica", 18, "bold") | |
class SampleApp(tk.Tk): | |
def __init__(self, *args, **kwargs): | |
tk.Tk.__init__(self, *args, **kwargs) | |
# the container is where we'll stack a bunch of frames |
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/python | |
# -*- coding: utf-8 -*- | |
class Reff: | |
def __init__(self, ent_id, subent_id, order_id, order_value): | |
self.ent_id = ent_id | |
self.subent_id = subent_id | |
self.order_id = '0000' + order_id | |
self.order_value = order_value | |
array = [3, 30, 9, 90, 27, 76, 81, 34, 49, 5, 50, 15, 53, 45, 62, 38, 89, 17, 73, 51] |
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
var page = new WebPage(); | |
//spoof it as opera mini, to get the mobile page working properly | |
page.settings.userAgent = "Opera/9.80 (J2ME/MIDP; Opera Mini/6.5.26955/27.1407; U; en) Presto/2.8.119 Version/11.10"; | |
function doLogin(){ | |
page.evaluate(function(){ | |
var frm = document.getElementById("login_form"); | |
frm.elements["email"].value = "--enter-your-email--"; |
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 random | |
n = int( random.random() * 100 ) | |
tentativas = 0 | |
while True: | |
a = raw_input('Numero entre 0 e 100: ') | |
if int(a) == n: |
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 splinter import Browser | |
import csv, time | |
class TwitterAccount: | |
def __init__(self, username, password): | |
self.username = username | |
self.password = password | |
self.b = Browser() |
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 requests | |
import uuid | |
import os | |
import csv | |
from lxml import etree | |
import time |