Skip to content

Instantly share code, notes, and snippets.

View artanisdesign's full-sized avatar

Gergely Cziva artanisdesign

View GitHub Profile
@shentonfreude
shentonfreude / s3upload.js
Last active July 14, 2022 19:43
Use NodeJS AWS SDK to upload a file to S3 with server-side encryption; uses environment for AWS creds
var AWS = require('aws-sdk');
var fs = require('fs');
var bucketName = 'my-bucket-name';
var bucketRegion = 'us-gov-west-1';
var file = 'PDFSCANS/AGILE_5_page.pdf';
var key = 'doc_pdf/CHRISJSnocreds.pdf';
AWS.config.update({
region: bucketRegion
@codediodeio
codediodeio / database.rules.json
Last active July 24, 2024 21:05
Common Database Rules for Firebase
// No Security
{
"rules": {
".read": true,
".write": true
}
}
@dodikk
dodikk / ChatRoomView.swift
Last active January 26, 2018 16:15
Bubble code for NMessenger ticket #115
import UIKit
import AsyncDisplayKit
import NMessenger
import VHChatLogic
class ChatRoomView: NMessengerViewController, ViewType
{
public var controller: ChatRoomController?
private let vhBubbleConfig = VHBubbleConfiguration()
override func viewDidLoad()
@nateinaction
nateinaction / react-firebase-auth.js
Last active November 21, 2022 14:44
This is a version of Facebook's React Conditional Rendering example modified to support firebase authentication.
/*
* This is a version of Facebook's React Conditional Rendering
* example modified to support firebase authentication.
* https://facebook.github.io/react/docs/conditional-rendering.html
*/
import React, { Component, PropTypes } from 'react';
import * as firebase from 'firebase';
function UserAvatar(props) {
@grantges
grantges / index.js
Created November 4, 2015 07:38
Example of a custom delete animation for Appcelerator ListView component using straight Ti - no module required.
$.index.open();
// When we click on the item we want to delete it. This can be called at any place actually,
// I just have it on this event.
function onItemClick(e){
// Get the data of the row so we can use it to populate the new templates
var data = $.listView.sections[e.sectionIndex].getItemAt(e.itemIndex);
// Set the counter to zero, we use this for naming the template on an interval
@yomybaby
yomybaby / README.md
Created September 18, 2015 12:47
Titanium : AttributedString in ListItem with link event.

Yes, you can do that in Titanium.

screenshot

@FokkeZB
FokkeZB / Package Control.sublime-settings
Last active August 29, 2015 14:27
Sublime Text Configuration
{
"in_process_packages":
[
],
"installed_packages":
[
"Compare Side-By-Side",
"DashDoc",
"DoxyDoxygen",
"Fizzy Theme",
@manumaticx
manumaticx / README.md
Last active July 11, 2020 14:07
Fading ActionBar in Titanium

Fading Actionbar

This is a quick example of how to create a fading actionbar effect like this in Appcelerator Titanium

fadingactionbar

How this works

This is actually very simple. The trick is putting the Actionbar in overlay mode by configuring the theme with windowActionBarOverlay:true. Then all you need to do is updating the color of the Actionbar, in this case by scrolling a ScrollView.

@jeffatstepup
jeffatstepup / passwalletIntent.js
Created February 17, 2015 10:18
How to open pkpass files in PassWallet from Appcelerator Titanium
/**
*
* Save pkpass to PassWallet
* See http://passwallet.attidomobile.com/PassWallet%20Developer%20Guide.pdf
*
*/
function shareToPassWallet () {
var pkpassFile,
intent,
@rborn
rborn / gist:63113167aace181f4f8b
Created October 14, 2014 12:12
Delete iOS8 simulator NSUserDefaults (Ti.App.Properties) on app uninstall
Delete this file
/Users/YOUR_USER/Library/Developer/CoreSimulator/Devices/SIM_UDID/data/Library/Preferences/APP_ID.plist