Skip to content

Instantly share code, notes, and snippets.

View Nolski's full-sized avatar

Mike Nolan Nolski

View GitHub Profile
int j = ;
char* linksep = "/";
char* linktok = strtok(tok, linksep);
char* linkstate = NULL;
char* linkclass = NULL;
while(linktok != NULL) {
if(j == 0)
linkstate = linktok;
if(j == 1)
typedef struct Transition {
int state;
int class;
char operation;
}Transition;
...
Transition tm[MAX_STATES][N_CC];
read_user_input(m);
64 void insert(TreeNode* node, int val) {
65 if (node->left == NULL && node->right == NULL) {
66
67 TreeNode n = {
68 val,
69 NULL,
70 NULL
71 };
72
73 if(val < node->data) {
@Nolski
Nolski / keybase.md
Created October 29, 2014 18:44
keybase.md

Keybase proof

I hereby claim:

  • I am Nolski on github.
  • I am nolski (https://keybase.io/nolski) on keybase.
  • I have a public key whose fingerprint is 10FA 8BA3 A6F0 CD9E 4019 A962 450E BE82 C5A5 2030

To claim this, I am signing this object:

@Nolski
Nolski / gist:c96c870b426dce2bd7c8
Last active August 29, 2015 14:12
nolski.rocks.conf
server {
listen 80;
server_name nolski.rocks;
# Removing server headers
proxy_pass_header Server;
server_tokens off;
return 301 https://nolski.rocks$request_uri;
}
@Nolski
Nolski / gist:16f437ab1e325a85b787
Created March 27, 2015 21:22
nolski.rocks conf
server {
listen 80;
server_name nolski.rocks;
# Removing server headers
proxy_pass_header Server;
server_tokens off;
return 301 https://nolski.rocks$request_uri;
}
@Nolski
Nolski / gist:2e952fd976f7d05587c1
Created April 13, 2015 20:18
xmsg brew formula
# Documentation: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md
# /usr/local/Library/Contributions/example-formula.rb
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class Xmsg < Formula
homepage "https://nolski.github.io/xmsg"
url "https://github.com/Nolski/xmsg/archive/0.0.1.tar.gz"
sha1 "8a652fdfe432b07230be0af39d1a45f09af6dc68"
version "0.1.0"
@Nolski
Nolski / editor.js
Last active August 29, 2015 14:27 — forked from tannishk/editor.js
editorerror
$(document).ready(function () {
<<<<<<< HEAD <--- This code belongs to upstream
PopcornEditor.listen(PopcornEditor.events.loaded, function () {
$.get($('#editor').data('url'), {
slug: $('#editor').data('slug')
})
.done(function (response) {
if(response.data) {
PopcornEditor.loadInfo(response);
} else {
{
"title": "this is the title",
"description": "this is the description",
"preview_img": "https://link.to/img.jpg",
"video_url": "https://link.to/video.webm"
}
{
"template": "basic",
"background": "#FFFFFF",
"data": {
"targets": [{
"id": "Target0",
"name": "video-container",
"element": "video-container",
}],
"media": [{