Skip to content

Instantly share code, notes, and snippets.

View TrigonaMinima's full-sized avatar

Shivam Rana TrigonaMinima

View GitHub Profile
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
*.out
*.pyc

NOTIFICATIONS

New_Idea (idea in a tag, new idea by a user)

  • source: tag, user
  • action: new_idea
  • sub: tag, user
  • string = "%s was added under %s.", idea, source
# chat server using multicast
# python fork of the original ruby implementation
# http://tx.pignata.com/2012/11/multicast-in-ruby-building-a-peer-to-peer-chat-system.html
# receiver.py
# usage : $ python receiver.py # wait for messages to come in
import socket
import struct
multicast_addr = '224.0.0.1'
#include <GL/glut.h> // GLUT, include glu.h and gl.h
// #include <windows.h>
// Global variable
GLfloat angle = 0.0f; // Current rotational angle of the shapes
int refreshMills = 30; // refresh interval in milliseconds
/* Initialize OpenGL Graphics */
@TrigonaMinima
TrigonaMinima / Lex.md
Last active September 24, 2015 20:29
A description about Lex

Introduction

Lex is a computer program that generates lexical analyzers ("scanners" or "lexers"). Lex reads an input stream specifying the lexical analyzer and outputs source code implementing the lexer in the C programming language. Lex turns the user's expressions and actions (called source here) into the host general-purpose language; the generated program is named yylex. The yylex program will recognize expressions in a stream (called input in this memo) and perform the specified actions for each expression as it is detected. See Figure 1.

                 +-------+
      Source ->  |  Lex  |  -> yylex
                 +-------+

                +-------+

Input -> | yylex | -> Output

This Gist contains a list of poems I like or want to read.

### Title: Back to basics: High quality plots using base R graphics
### An interactive tutorial for the Davis R Users Group meeting on April 24, 2015
###
### Date created: 20150418
### Last updated: 20150423
###
### Author: Michael Koontz
### Email: mikoontz@gmail.com
### Twitter: @michaeljkoontz
###
@TrigonaMinima
TrigonaMinima / 01.md
Last active September 15, 2018 15:11
Jokes... [many are NSFW]

Here

One day a guy dies and finds himself in hell.
As he is wallowing in despair, he has his first meeting with the devil...
Satan: "Why so glum?"
Guy: "What do you think? I'm in hell!"
Satan: "Hell's not so bad. We actually have a lot of fun down here. You a drinking man?"
Guy: "Sure, I love to drink."
Satan: "Well, you're gonna love Mondays then. On Mondays, that's all we do, drink. Whiskey, tequila, Guinness, wine coolers, Tab, and Fresca. We drink 'til we throw up, and then we drink some more! And you don't have to worry about getting a hangover, because you're dead anyway."
Guy: "Gee that sounds great!"

@TrigonaMinima
TrigonaMinima / .gitignore
Last active February 15, 2018 11:34
Shiny App.. wordcloud
*.png
rsconnect/*
@TrigonaMinima
TrigonaMinima / dfa.cpp
Last active September 7, 2015 21:46
Compiler Lab
// Deterministic Finite Automata
# include <iostream>
# include <fstream>
# include <vector>
# include <sstream>
# include <string>
# include <map>
using namespace std;