Skip to content

Instantly share code, notes, and snippets.

View Ranner198's full-sized avatar
💭
Trying to GitGud

Ran Crump Ranner198

💭
Trying to GitGud
View GitHub Profile
@Ranner198
Ranner198 / WebScraper.js
Created January 9, 2019 17:49
Webscrape Code Example
//Loading the npm packages
const cheerio = require('cheerio')
const request = require('request')
//The Url that will be scraped
var URL = 'http://rancrump.com/aboutme/';
//The attribute that will be searched, follows the HTML class and ID syntax i.e. '.' and '#'
//can also select a span by simply typing span in the begining i.e. 'span.someClassName'
var selector = '.myTopBorder'
@hostilefork
hostilefork / listener.c
Last active November 6, 2024 11:10
Simple listener and sender for UDP multicast
//
// Simple listener.c program for UDP multicast
//
// Adapted from:
// http://ntrg.cs.tcd.ie/undergrad/4ba2/multicast/antony/example.html
//
// Changes:
// * Compiles for Windows as well as Linux
// * Takes the port and group on the command line
//
@taniarascia
taniarascia / index.html
Last active October 21, 2024 22:09
HTML Skeleton file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="author" content="">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">