Skip to content

Instantly share code, notes, and snippets.

View maleficarum's full-sized avatar

Oscar Ivan maleficarum

View GitHub Profile
@maleficarum
maleficarum / tde_opam.sh
Created March 14, 2014 18:41
Disable TDE in OPAM config
$ORACLE_HOME/opam/bin/opam.sh -url https://localhost:18102/opam/ -x modifyglobalconfig -propertyname tdemode -propertyvalue false -u weblogic -p welcome1
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore my_application.apk alias_name
@maleficarum
maleficarum / skeleton.xsd
Created August 26, 2014 15:38
XSD Skeleton
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://example.com" elementFormDefault="qualified" xmlns="http://example.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:bpmo="http://xmlns.oracle.com/bpm/bpmobject/" >
<xs:element name="User">
<xs:complexType>
<xs:sequence>
<xs:element name="user" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
@maleficarum
maleficarum / ScrollableMenu.js
Created September 8, 2014 04:26
Scrollable menu in appcelerator
var win = Ti.UI.createWindow({
backgroundColor: '#333'
});
var menuWidth = 200;
var container = Ti.UI.createScrollView({
disableBounce: false,
horizontalBounce: true,
contentWidth: Ti.Platform.displayCaps.platformWidth + menuWidth
@maleficarum
maleficarum / openTab.js
Created September 14, 2014 03:03
Open appcelerator window within current tab
var win = Titanium.UI.createWindow({
url:'map.js',
title:'MAP!',
backgroundColor:'transparent',
barColor:'#fff',
});
Titanium.UI.currentTab.open(win,{animated:true});
@maleficarum
maleficarum / app.js
Last active August 29, 2015 14:06 — forked from dawsontoth/app.js
Appcelerator "rate my app" ...
/**
* The following snippet will ask the user to rate your app the second time they launch it.
* It lets the user rate it now, "Remind Me Later" or never rate the app.
*/
var win = Ti.UI.createWindow({ backgroundColor: '#fff' });
win.addEventListener('open', checkReminderToRate);
win.add(Ti.UI.createLabel({ text: 'This is a simple app that will remind you to rate it.' }));
win.open();
function checkReminderToRate() {
@maleficarum
maleficarum / app.js
Last active August 29, 2015 14:06 — forked from aaronksaunders/app.js
//
// Aaron K. Saunders
//
// http://www.clearlyinnovative.com
// http://blog.clearlyinnovative.com
// @aaronksaunders
//
//
(function() {
var group, tab1, tab2, win1, win2;
@maleficarum
maleficarum / config.samba.txt
Last active August 29, 2015 14:06
SMB Raspberry basic configuration
sudo apt-get install samba samba-common-bin
sudo vim.tiny /etc/samba/smb.conf &
workgroup = your_workgroup_name
wins support = yes
[pihome]
comment= Pi Home
path=/home/pi
browseable=Yes
@maleficarum
maleficarum / fetch.parse.config.js
Created September 28, 2014 15:55
Parse config fetching on appcelerator app
var parseURL = "https://api.parse.com/1/config";
var xhr = Ti.Network.createHTTPClient({
onload: function(e) {
//Ti.API.info(this.responseText);
//alert('success');
var response = JSON.parse(this.responseText);
response = response.params;
// This is the Android version of the Tweetie-like pull to refresh table:
// http://developer.appcelerator.com/blog/2010/05/how-to-create-a-tweetie-like-pull-to-refresh-table.html
var win = Ti.UI.currentWindow;
var alertDialog = Titanium.UI.createAlertDialog({
title: 'System Message',
buttonNames: ['OK']
});
var scrollView = Ti.UI.createScrollView({