Skip to content

Instantly share code, notes, and snippets.

View numeroSette's full-sized avatar
🏠
Working from home

Guilherme Vito Giuseppe Sette numeroSette

🏠
Working from home
View GitHub Profile
@numeroSette
numeroSette / script.py
Created September 29, 2023 15:17
Transformada de Fourier
import numpy as np
import matplotlib.pyplot as plt
# Frequência do sinal
frequencia_sinal = 5 # Hz
# Frequência de amostragem
frequencia_amostragem = 100 # Hz
# Tempo de amostragem
@numeroSette
numeroSette / Adding a Physical Disk to Parallels.md
Created August 31, 2023 17:36 — forked from Obbut/Adding a Physical Disk to Parallels.md
Adding a second physical disk to Parallels

Adding a second physical disk to Parallels Desktop 14

I wanted my (NTFS) data disk to be accessible from my boot camp Parallels VM. Parallels provides no support for this, so I tried it myself.

I duplicated the disk file that Parallels created and started poking around, and after half an hour or so, had success. This is what you need to do.

My boot camp disk is at /dev/disk0. My data disk is at /dev/disk1.

These instructions are provided for educational use only and without guarantees. If you lose data because of this, blame yourself, and only follow them if you know what you are doing.

@numeroSette
numeroSette / animated-atom-logo.markdown
Created December 30, 2021 00:53
Animated Atom Logo
@numeroSette
numeroSette / index.html
Created December 30, 2021 00:52
Showreel Intro Text
<div class="container">
<span class="txt1">www.codepen.io/</span><span class="txt2">creativeocean</span><div class="bar"></div>
</div>
#!/bin/bash
# https://www.baeldung.com/linux/execute-command-directories
function recursive_for_loop {
for f in *; do
if [ -d $f -a ! -h $f ];
then
cd -- "$f";
echo "Doing something in folder `pwd`/$f";
@numeroSette
numeroSette / promisse_javascript.js
Last active January 29, 2021 18:08
Testing promisse JS
import * as AWS from 'aws-sdk'
AWS.config.update({ region: 'us-east-1' });
var credentials = new AWS.SharedIniFileCredentials({ profile: 'default' });
AWS.config.credentials = credentials;
const ec2 = new AWS.EC2();
var params = {};
<!DOCTYPE html>
<html>
<head>
<script src="http://jashkenas.github.io/underscore/underscore-min.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
var json = [
{
"id" : '1',
"name" : "Marker 1",
"lat" : '-25.55913',
"lng" : '-49.282099'
},
{
"id" : '2',
<?php
// Put your device token here (without spaces):
$deviceToken = '7ea574515a5f669070e3b9459db24be3f4b8085d122ddb7fa16d8cf9063e019a';
// Put your private key's passphrase here:
$passphrase = 'Figueiredo771';
// Put your alert message here:
$message = 'My first push notification!';
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/
// author: Pawel Kozlowski
var myApp = angular.module('myApp', []);
//service style, probably the simplest one
myApp.service('helloWorldFromService', function() {
this.sayHello = function() {
return "Hello, World!"