Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

aneury perez aneury1

🎯
Focusing
Block or report user

Report or block aneury1

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View bitfield.cpp
#include <iostream>
...
void fn(){
char ch = 0xDF;
for (int i =8; i > 0; i--)
{
std::cout <<((ch&(1<<i))?1:0);
}
char v = 2;
View qrcode.dart
class _AppState extends State<AppState> {
builder(){
Future<String> futureString = new QRCodeReader()
.setAutoFocusIntervalInMs(200) // default 5000
.setForceAutoFocus(true) // default false
.setTorchEnabled(true) // default false
.setHandlePermissions(true) // default true
.setExecuteAfterPermissionGranted(true) // default true
.scan();
View edit.dart
getRow(final context,{text}){
return
Container
(
decoration: BoxDecoration(border: Border.all(color: Colors.black45)),
padding: EdgeInsets.symmetric(horizontal: 8.0),
height: 70.0,
/// color: Colors.white10,
child:
Row
View person.js
import React,{Fragment,useContext, useState, createContext} from 'react';
import './App.css';
/*
import {myContext, NameProvider } from './Context';
*/
export const myContext = createContext();
export const NameProvider = props=>{
View social.clone.task.html
<!--
I believe almost all web developer would try build a simple social network and this could be use as template
Todo task: Build this as React.js App.
todo fix scroll on user-env div, I want this become fixed and scrollabel when the user scroll the window
todo add responsive design(even zoom is applied in browser, this scare me).
-->
<!DOCTYPE html>
<html lang="en">
<head>
View todolist.jsx
import cx from 'classnames';
import { Component } from 'react';
export default class TodoList extends Component {
constructor(props){
super(props);
this.state={
items:[],
number_task_done:0,
View reactstatemap.jsx
const object=[
{name:"76767"},
{name:"676776"},
{name:"p65o767677la"},
{name:"ane67676767674ury"},
{name:"ja46546464vier"},
{name:"4646456564"},
];
View map.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
*{
margin:0;
@aneury1
aneury1 / node_nginx_ssl.md
Created Sep 23, 2019 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL
View node_nginx_ssl.md

Node.js Deployment

Steps to deploy a Node.js app to Digital Ocean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

View startChip9.cpp
#include <fstream>
#include <iostream>
#include <stdio.h>
#include <map>
using namespace std;
constexpr int MEMORY_SIZE=0xFFF;
struct Chip8
{
unsigned char memory[MEMORY_SIZE];
bool loaded_rom;
You can’t perform that action at this time.