- Shut down your Mac, then press and hold the power button until "Loading startup options" appear.
- Select "Options"
- In the menu on top of the screen, choose "Utilities" -> "Startup Security Utility".
- Click "Security Policy"
- Select "Reduced Security" and check "Allow user management of kernel extensions from identified developers".
- Reboot
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.ferdinandsilva.printertest2 | |
import android.annotation.SuppressLint | |
import android.bluetooth.BluetoothAdapter | |
import android.bluetooth.BluetoothDevice | |
import android.bluetooth.BluetoothManager | |
import android.bluetooth.BluetoothSocket | |
import android.content.Context | |
import android.os.Bundle | |
import android.util.Log |
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
%define STDIN_FILENO 0 | |
%define TCSAFLUSH 2 | |
%define VMIN 6 | |
%define VTIME 5 | |
%define BRKINT 0x2 | |
%define ICRNL 0x100 | |
%define INPCK 0x10 | |
%define ISTRIP 0x20 | |
%define IXON 0x400 | |
%define OPOST 0x1 |
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
;floating point operation sample code | |
;just practicing programming in assembly language (Ferdinand Silva) | |
global main | |
extern printf | |
section .text | |
main: | |
call float_operation | |
mov rdi, str | |
sub rsp, 8 ;align stack (double is 8 bytes) |
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
if(!(s_i(S_E))) # init sdl | |
abt('Unable to initialize SDL...') | |
fi | |
if(!(s_mi(SM_MP))) # init mix | |
abt('Unable to initialize SDL Mix...') | |
fi | |
if(!(s_moa(SM_D_FR, SM_D_FO, SM_D_CHA, SM_D_CHU))) # open audio |
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
if(!(s_it())) # init ttf | |
abt('Unable to init ttf...') | |
fi | |
if(!(s_i(S_E))) # init sdl | |
abt('Unable to initialize SDL...') | |
fi | |
win = s_cw("Test", S_WP_U, S_WP_U, 800, 600, S_W_S) #create window | |
if(win == Nil) |
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
^ | |
SDL2 Sample Code | |
================ | |
^ | |
#init sdl | |
if(!(s_i(S_E))) | |
abt('Unable to initialize SDL...') | |
fi | |
#create window |
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
irc_port = 6667 | |
socket = "" | |
irc_server = r("Please Enter IRC Server Address: ") | |
irc_nick = r("Please Enter IRC Nick: ") | |
irc_channel = r("Please Enter IRC Channel: ") | |
socket = netc("tcp", irc_server + ":" + tos(irc_port)) | |
socket_msg = "" | |
wl (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
sc(5) | |
p("Drone Commander 1.1\n") | |
p("By: Ferdinand Silva\n") | |
p("-------------------\n") | |
command_connection = netc("udp", "192.168.10.1:8889") | |
netw(command_connection, "command") | |
fl (0, 0) | |
sc(3) |
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
""" | |
A Python script that converts an image file to a pure CSS image. | |
This code was based on a PHP script https://github.com/jaysalvat/image2css. | |
Sample: https://codepen.io/six519/pen/YzQOKrX | |
""" | |
import os | |
import sys | |
from PIL import Image |
NewerOlder