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 PIL import Image | |
import math | |
path = "peru.jpeg" # Your image path | |
img = Image.open(path) | |
newimg = Image.new("RGB", (width, height), "white") | |
for x in range(1, width-1): # ignore the edge pixels for simplicity (1 to width-1) | |
for y in range(1, height-1): # ignore edge pixels for simplicity (1 to height-1) | |
# initialise Gx to 0 and Gy to 0 for every pixel | |
Gx = 0 |
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 PIL import Image | |
path = "noise.png" # Your image path | |
img = Image.open(path) | |
members = [(0,0)] * 9 | |
newimg = Image.new("RGB",(width,height),"white") | |
for i in range(1,width-1): | |
for j in range(1,height-1): | |
members[0] = img.getpixel((i-1,j-1)) | |
members[1] = img.getpixel((i-1,j)) | |
members[2] = img.getpixel((i-1,j+1)) |
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
package com.projects.enzoftware.metalball | |
import android.app.Service | |
import android.bluetooth.BluetoothClass | |
import android.content.Context | |
import android.content.pm.ActivityInfo | |
import android.graphics.Bitmap | |
import android.graphics.BitmapFactory | |
import android.graphics.Canvas | |
import android.graphics.Point |
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
<!DOCTYPE html> | |
<html lang="en" xmlns:th="http://www.thymeleaf.org"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<title>Plantilla Admin</title> | |
<!-- Bootstrap core CSS --> |
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
package semana09.controller; | |
import java.util.Optional; | |
import javax.validation.Valid; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.ui.Model; |
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
<!DOCTYPE html> | |
<html lang="en" xmlns:th="http://www.thymeleaf.org"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<title>Plantilla Admin</title> | |
<!-- Bootstrap core CSS --> |
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
package com.dupla.dupla.db | |
import android.content.Context | |
import android.database.sqlite.SQLiteDatabase | |
import android.database.sqlite.SQLiteOpenHelper | |
import android.util.Log | |
/** | |
* Created by enzoftware on 4/20/18. |
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
{ | |
repositoryOwner(login: "enzoftware") { | |
... on User { | |
pinnedRepositories(first: 6) { | |
edges { | |
node { | |
name | |
description | |
primaryLanguage { | |
name |
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
fun divideArr(array : ArrayList<Int>,low : Int, top : Int) : Int{ | |
val pivot = array[top] | |
var i = (low - 1) | |
for (j in low .. top){ | |
if(array[j] <= pivot){ | |
i++ | |
val t = array[i] | |
array[i] = array[j] | |
array[j] = t |
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
// Android | |
startActivity( | |
FlutterActivity | |
.withCachedEngine("my_engine_id") | |
.build(this)) | |
val mc = BasicMessageChannel(flutterEngine.dartExecutor.binaryMessenger, CHANNEL, StringCodec.INSTANCE) | |
mc.send(Gson().toJson(quote)) | |
OlderNewer