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
// Sliver appbar with tabs. | |
// Adapted from: https://stackoverflow.com/a/50858058 | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MaterialApp( | |
home: SilverAppBarWithTabBarScreen(), | |
)); | |
class SilverAppBarWithTabBarScreen extends StatefulWidget { |
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
//windows | |
netsh wlan show profile name="nombre-red" key=clear | |
//mac | |
security find-generic-password -ga vodafone7f5d | grep password |
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, getopt | |
import urllib | |
import urlparse | |
import base64 | |
import mimetypes | |
import cgi | |
import sqlite3 | |
import os |
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
# crear pagina | |
ionic g page login | |
# un component es una piea de código que podremos usar en cualquier parte de nuestra aplicacion | |
ionic g component myComponent | |
# Una directive es un modificador de atributos que podemos usar en cualquier elemento de nuestra aplicación | |
ionic g directive myDirective |
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 -*- | |
# Python 3.5 | |
# Django 1.9.7 | |
from reportlab.pdfgen import canvas | |
from reportlab.graphics.shapes import Drawing | |
from reportlab.graphics.barcode.qr import QrCodeWidget | |
from reportlab.graphics import renderPDF | |
from io import BytesIO, StringIO | |
from zipfile import ZipFile, ZIP_DEFLATED |
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
package main | |
import ( | |
"io/ioutil" | |
"log" | |
"strings" | |
"net/http" | |
"encoding/json" | |
"fmt" | |
"time" |
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 os | |
import xml.parsers.expat | |
from xml.sax.saxutils import escape | |
from optparse import OptionParser | |
from math import log10 | |
# How much data we process at a time |
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
# views.py - django app called ajx | |
from django.shortcuts import render, get_object_or_404, redirect, HttpResponse, render_to_response, HttpResponseRedirect | |
from django.core.urlresolvers import reverse | |
from django.contrib.auth import authenticate, login | |
import json | |
def mygetview(request): | |
if request.method == 'GET': |