Instantly share code, notes, and snippets.

View CoS.json
{
"compendiums": [
{
"maps": [
{
"contentId": "7c0893f7-b04a-45b3-98ce-b7cd092fdbc6",
"extraAreas": [],
"isChapterMap": true,
"mapImageName": "001.jpg",
"menuHeaderId": "Chapter2TheLandsofBarovia",
View imc.py
# .*. coding: latin1 .*.
# importa wxPythton
import sqlite3
con = sqlite3.connect('aula3228524.db')
cur = con.cursor()
sql = 'create table imc (id integer primary key, peso float, altura float, imc float)'
cur.execute(sql)
View keybase.md

Keybase proof

I hereby claim:

  • I am mxaly on github.
  • I am rafalgawlik (https://keybase.io/rafalgawlik) on keybase.
  • I have a public key ASDMsh6E0GYNLoI88iFYf_knkhUPfRQ8ZGGkCJSnISipoAo

To claim this, I am signing this object:

View keymaps.json
{
"window:devtools": "command+alt+i",
"window:reload": "command+r",
"window:reloadFull": "command+shift+r",
"window:preferences": "command+,",
"zoom:reset": "command+0",
"zoom:in": "command+plus",
"zoom:out": "command+-",
"window:new": "command+n",
"window:minimize": "command+m",
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
View 1-suspend-functions.kt
package com.shopify.coroutine.sample
import kotlinx.coroutines.delay
import kotlinx.coroutines.isActive
import kotlinx.coroutines.runBlocking
import kotlin.coroutines.coroutineContext
fun main(vararg args: String) {
// suspendFunc1() //- won't compile outside coroutine or another suspend function
View s0Cq01_shuffle_lines.py
""" Takes a filename as argument
Creates a new file with the name
"shuffle" appended to the original filename.
The lines in the input are shuffled
and written into the new file
"""
import sys
#from s0Cq01_fileops import *
import s0Cq01_fileops
import random
View .rpmmacros
# The original settings confirmed by running: rpm --showrc
# -14: __gpg %{_bindir}/gpg2
# -14: __gpg_check_password_cmd %{__gpg}
# gpg --batch --no-verbose --passphrase-fd 3 -u "%{_gpg_name}" -so -
#
# -14: __gpg_sign_cmd %{__gpg}
# gpg --batch --no-verbose --no-armor --passphrase-fd 3
# %{?_gpg_digest_algo:--digest-algo %{_gpg_digest_algo}}
# --no-secmem-warning
# -u "%{_gpg_name}" -sbo %{__signature_filename} %{__plaintext_filename}
View category_detail.html
{% extends "blog/base.html" %}
{% block content %}
{{category.name}}
{% for post in posts %}
<article class="media content-section">
<img class="rounded-circle article-img" src="{{ post.author.profile.image.url }}">
<div class="media-body">
<div class="article-metadata">
View sample-spring-restful-controller
package com.abc.vendor.controllers;
import com.abc.vendor.entities.Vendor;
import com.abc.vendor.repos.VendorRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController