This file contains 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 python2 | |
# -*- coding: utf-8 -*- | |
# https://www.urionlinejudge.com.br/judge/pt/problems/view/1478 | |
from sys import stdout | |
w = stdout.write | |
m = ''.join('%03s ' % l for l in range(100, 0, -1) + range(2, 101)) | |
n = input('') | |
while n > 0: | |
nn = n * 4 | |
for ss in xrange(396, 396 - nn, -4): |
This file contains 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
resource "aws_iam_policy" "terraform_create_policy" { | |
name = "terraform_create_policy" | |
path = "/" | |
policy = "${data.aws_iam_policy_document.terraform_create_policy.json}" | |
} | |
data "aws_iam_policy_document" "terraform_create_policy" { | |
statement { | |
sid = "1" | |
actions = [ |
This file contains 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
print(bin(int(input("Escolha um número decimal para transformar em binario: ")))[2:]) |
This file contains 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
#!/bin/sh | |
# set -x | |
# Requires: | |
# JSON.sh (https://github.com/dominictarr/JSON.sh) | |
TOKEN='' | |
AUTH="Authorization: Bearer $TOKEN" | |
BASE='https://developers.crittercism.com/v2' |
This file contains 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
#!/bin/sh | |
# It seems it's very hard to set resample output quality with Ghostscript. | |
# So instead rely on `prepress` preset parameter to select a good /QFactor | |
# and override the options we don't want from there. | |
gs \ | |
-o resampled.pdf \ | |
-sDEVICE=pdfwrite \ | |
-dPDFSETTINGS=/prepress \ |
This file contains 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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<System xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<!-- | |
Sources: | |
http://www.trappist.one/#system | |
http://www.trappist.one/system/ | |
https://exoplanets.nasa.gov/trappist1/ | |
https://en.wikipedia.org/wiki/TRAPPIST-1 | |
http://exoplanet.eu/catalog/trappist-1_b/ | |
http://www.exoplanetkyoto.org/exohtml/TRAPPIST-1.html |
This file contains 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
{ | |
"type": "object", | |
"required": [ | |
"AWSEBDockerrunVersion", | |
"containerDefinitions", | |
"volumes" | |
], | |
"properties": { | |
"AWSEBDockerrunVersion": { | |
"type": "integer", |
This file contains 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd"> | |
<!--Generated with glade3 3.3.4 on Mon Sep 10 16:47:51 2007 --> | |
<glade-interface> | |
<widget class="GtkWindow" id="calc"> | |
<property name="width_request">275</property> | |
<property name="height_request">250</property> | |
<child> | |
<widget class="GtkVBox" id="vbox1"> | |
<property name="visible">True</property> |
This file contains 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 schemalchemy import Base | |
from schematics.types import StringType | |
from schematics.types.compound import ListType, ModelType | |
from schematics.types.serializable import serializable | |
from sqlalchemy import Column, ForeignKey, Integer, String | |
from sqlalchemy import create_engine | |
from sqlalchemy.orm import sessionmaker, relationship, synonym |
This file contains 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
{ | |
"timestamp": 1461277820031, | |
"webhookEvent": "jira:issue_updated", | |
"user": { | |
"self": "http://jira.server.my/rest/api/2/user?username=paul", | |
"name": "paul", | |
"key": "paul", | |
"emailAddress": "paul@server.my", | |
"avatarUrls": { | |
"48x48": "http://www.gravatar.com/avatar/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa?d=mm&s=48", |