Skip to content

Instantly share code, notes, and snippets.

View Zidanela's full-sized avatar

Khoi Nguyen Zidanela

  • KMS Technology Vietnam
View GitHub Profile
import os
terminal_app = "/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal"
project_path = "/Applications/CoronaSDK/SampleCode/GettingStarted/Clock/"
corona_path = "/Applications/CoronaSDK/simulator"
main_file = "main.lua"
app_name_text = "MyTestApp"
app_version_text = "1"
app_package_text = "com.arek.mytestapp"
app_destination_folder = "/Users/arek/tools/corona/helloworld/"
@Zidanela
Zidanela / base64.lua
Last active August 29, 2015 14:24 — forked from paulmoore/base64.lua
--- base64.lua
--
-- https://gist.github.com/2563975
--
-- V0.3 for Lua 5.1
--
-- A simple Base64 encoder/decoder that uses a URL safe variant of the standard.
-- This implementation encodes character 62 as '-' (instead of '+') and character 63 as '_' (instead of '/').
-- In addition, padding is not used by default.
-- A full description of the specification can be found here: http://tools.ietf.org/html/rfc4648
@Zidanela
Zidanela / LdapClient.java
Created April 25, 2016 07:05
Example: How get user info from LDAP
import javax.naming.Context;
import javax.naming.NamingEnumeration;
import javax.naming.NamingException;
import javax.naming.directory.Attributes;
import javax.naming.directory.SearchControls;
import javax.naming.directory.SearchResult;
import javax.naming.ldap.InitialLdapContext;
import javax.naming.ldap.LdapContext;
import javax.xml.registry.infomodel.User;
import java.io.FileOutputStream;