Skip to content

Instantly share code, notes, and snippets.

View jungleBadger's full-sized avatar
💭
Saudade do meu coroa, por isso eu codo.

Daniel Abrão jungleBadger

💭
Saudade do meu coroa, por isso eu codo.
View GitHub Profile

How to Run NC Cloud widget

  1. Import widget script:
<script defer data-nc-token="{YOUR_TOKEN}" src="/widget" type="text/javascript"></script>
  1. Construct the html
<body>
@jungleBadger
jungleBadger / process.md
Last active May 7, 2018 20:04
CEDP/EPM Cluster run process

Preparing to run on Cluster:

Variables:

These variables are used accross the guide

  • $HOME = Home root folder
  • $SPACE_NAME = Your squad/unique_id to create a new branch project space
  • $TMP_FILE_NAME = Auto generated .tmp file to be used on deploy
  • $SPARK_MASTER_POD_NAME = Pod name that is running the Spark Master instance
/*jslint node: true, nomen:true*/
/*env:node*/
(function () {
"use strict";
require("dotenv").config({"silent": true});
const gulp = require("gulp");
const packageJson = require("./package.json");
const swPrecache = require("sw-precache");
const argv = require("yargs").argv;
const browserify = require("browserify");
@jungleBadger
jungleBadger / turtle-fullstack-nd
Created November 27, 2016 14:51
Drawing with Python's Turtle module. Udacity full stack web dev nano degree
import turtle
def draw_initials():
pointer = turtle.Turtle()
draw_d(pointer)
pointer.color("black")
pointer.forward(40)
draw_a(pointer)
#include "ESP8266.h"
#include <SoftwareSerial.h>
SoftwareSerial Serial1(2,3);
#define CH_PD 11 //sinal de controle de CH_PD
#define RST 12 //sinal de controle de RST
#define GPIO0 13 //sinal de controle de GPIO0
//Coloque nos campos indicados o nome e senha da sua rede WiFi