Skip to content

Instantly share code, notes, and snippets.

View grejdi's full-sized avatar
👋

Grejdi Gjura grejdi

👋
View GitHub Profile
<html>
<head>
<title>blah</title>
<style type="text/css">
@keyframes ribbon13 {
from {
transform: rotate(90deg);
-webkit-transform: rotate(90deg);
}
to {
@grejdi
grejdi / main.cpp
Created March 5, 2014 05:36
Using openssl to encrypt and decrypt a message with public/private key.
using namespace std;
#include <openssl/evp.h>
#include <openssl/pem.h>
#include <iostream>
#include <string>
int main()
{
@grejdi
grejdi / compile.js
Last active October 10, 2015 16:38
Using Rhino to compile Mustache templates with Hogan
// load 'hogan' library
load('js/lib/hogan/web/builds/2.0.0/hogan-2.0.0.js');
// initialize templates object
print('var templates = {');
// read mustache template content from file path
template = readFile('templates/index.mustache');
// print compiled function from Hogan
print('"index" : new Hogan.Template(' + Hogan.compile(template, {asString : true}) + ')');