Skip to content

Instantly share code, notes, and snippets.

Launched my first mac app –– Presentify

Ram rampatra

Launched my first mac app –– Presentify
View GitHub Profile
kamermanpr /
Last active Mar 24, 2021
Install Xcode Command Line Tools, Homebrew, and Git on macOS

Install Xcode command line tools, Homebrew, and Git on macOS

Install the following apps on your mac running macOS:

  1. (standalone) Xcode Command Line Tools
  2. Homebrew
  3. Git

Modified from:

SimoneStefani /
Last active Oct 21, 2020
Example of AES encryption and decryption in Java
* Code written by P. Gajland
* This code is for educational and demonstrative purpose only.
* If you need to do serious encryption for "production" it is
* recommended to investigate more traditional libraries and
* gain some specific knowledge on cryptography and security.
GJNilsen / FlatButton.swift
Last active Apr 11, 2020
Subclass of NSButton
View FlatButton.swift
import AppKit
public class FlatButton: NSButton {
public var buttonColor: NSColor = NSColor(calibratedRed: 0.201, green: 0.404, blue: 0.192, alpha: 1)
public var onClickColor: NSColor = NSColor(calibratedRed: 0.304, green: 0.601, blue: 0.294, alpha: 1)
public var textColor: NSColor = NSColor.white
public override func draw(_ dirtyRect: NSRect) {
chinchang / xmlToJson.js
Last active Apr 7, 2021
Function to convert XML to JSON
View xmlToJson.js
* Changes XML to JSON
* Modified version from here:
* @param {string} xml XML DOM tree
function xmlToJson(xml) {
// Create the return object
var obj = {};
if (xml.nodeType == 1) {
tamouse /
Last active Dec 3, 2020
Adding a class to a table in markdown (using kramdown processor as default in Jekyll).
# Let's try out a table with kramdown class tag
| A simple | table |
| with multiple | lines|
{: .my-class }
ManuelPeinado /
Created Oct 19, 2014
Fading action bar effect using the new Toolbar class from the support library
package com.github.manuelpeinado.toolbartest;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
itarato /
Created Sep 28, 2014
Java AES CBC encryption example
import javax.crypto.Cipher;
import javax.crypto.Mac;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
public class Main {
nurinamu / tag_img.rb
Created Sep 7, 2014
jekyll plugin for custom size img tag.
View tag_img.rb
module Jekyll
class RenderImgTag < Liquid::Tag
def initialize(tag_name, text, tokens)
@url , *@val= text.split(/ /)
if @val.length > 0
@width , *@height = @val[0].split(/x/)
staltz /
Last active Apr 11, 2021
The introduction to Reactive Programming you've been missing
mobilemind /
Last active Apr 9, 2021
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName