Skip to content

Instantly share code, notes, and snippets.


aneury perez aneury1

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> {
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
View edit.dart
getRow(final context,{text}){
decoration: BoxDecoration(border: Border.all(color: Colors.black45)),
padding: EdgeInsets.symmetric(horizontal: 8.0),
height: 70.0,
/// color: Colors.white10,
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">
View todolist.jsx
import cx from 'classnames';
import { Component } from 'react';
export default class TodoList extends Component {
View reactstatemap.jsx
const object=[
View map.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
aneury1 /
Created Sep 23, 2019 — forked from bradtraversy/
Node app deploy with nginx & SSL

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)

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.