La receta legendaria de empanada gallega de Urtzi.
Ingredientes:
- Una tacita pequeña (como de espresso) de vino blanco
- La misma cantidad de aceite
package au.id.alexn; | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.util.Log; | |
import android.view.MotionEvent; | |
import android.view.ScaleGestureDetector; | |
import android.view.View; | |
import android.widget.FrameLayout; |
Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative
float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import android.util.Log; | |
import android.view.MotionEvent; | |
import android.view.ScaleGestureDetector; | |
import android.view.View; | |
import android.view.ViewConfiguration; | |
public class MainActivity extends AppCompatActivity implements View.OnTouchListener { |
#!/usr/bin/expect -f | |
set prompt "#" | |
set address [lindex $argv 0] | |
spawn sudo bluetoothctl -a | |
expect -re $prompt | |
send "remove $address\r" | |
sleep 1 | |
expect -re $prompt |
#! /usr/bin/env python3 | |
"""Fixing bluetooth stereo headphone/headset problem in debian distros. | |
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197 | |
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone. | |
This will be only fixes the bluez5 problem mentioned above . | |
Licence: Freeware |
func grid_to_world(position): | |
# (0,8) is the offset to the middle of the tile | |
return map_to_world(position) + Vector2(0, 8) | |
func world_to_grid(position): | |
return world_to_map(position) | |
func get_tile_cost(pos): | |
# placeholder | |
return 1.0 |
import pygame as pg | |
import math | |
from pygame.locals import * | |
""" | |
thick_aaline(surface, color, point0, point1, width) | |
draw a anti-aliased line from point1 to point2 with given width | |
The algorithms computes the corners (a, b, c, and d) | |
that form the borders of the thick line and then draws a filled |
$reboot | |
bash: /sbin/reboot: Input/output error | |
$shutdown -r now | |
bash: /sbin/shutdown: Input/output error | |
# | |
# if the above reboot commands doesn't work try either forced reboot or shutdown | |
# |