Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Contemplating the unknowns of the universe

Saeed Richardson akaHeimdall

💭
Contemplating the unknowns of the universe
View GitHub Profile
@akaHeimdall
akaHeimdall / example.json
Created Mar 10, 2016
Sample Data Structure
View example.json
{
"id": "0003ee8c-2288-11e4-9610-0015c5f288ee",
"created_at": "8/12/14 9:24",
"updated_at": "8/12/14 9:25",
"aamc_id": "87878999",
"acomas_id": "",
"tmdsas_id": "",
"school_id": "",
"is_md_applicant": "1",
"is_phd_applicant": "0",
@akaHeimdall
akaHeimdall / App.js
Last active Jun 30, 2016
react component for main app that loads announcement list
View App.js
// App
// <App/>
import React from 'react';
import Header from './Header';
import SenderNav from './SenderNav';
import Dashboard from './Dashboard';
import AnnouncementsList from './Announcements/AnnouncementsList';
@akaHeimdall
akaHeimdall / AnnouncementList.js
Created Feb 18, 2016
Sample react component for listing announcements
View AnnouncementList.js
// AnnouncementList
// <AnnouncementList/>
import React from 'react';
import marked from 'marked';
var AnnouncementsList = React.createClass({
renderAnnouncement : function(key) {
// var linkState = this.props.linkState;
View gist:eac8b92e37942f9bbfe6
language: node_js
node_js:
- 0.10.25
# - 0.10.30
services:
- mongodb
before_install:
- npm install -g phantomjs
- npm install -g velocity-cli
install:
View default.rb
#
# Cookbook Name:: delayed_job
# Recipe:: default
#
if ['solo', 'app', 'app_master'].include?(node[:instance_role])
# be sure to replace "app_name" with the name of your application.
run_for_app("maloca") do |app_name, data|
View default.rb
#
# Cookbook Name:: delayed_job
# Recipe:: default
#
if ['solo', 'app', 'app_master'].include?(node[:instance_role])
# be sure to replace "app_name" with the name of your application.
run_for_app("maloca") do |app_name, data|
View TiteWalk_Screencast3_Source.html
<!-- index.html -->
<html>
<head>
<link rel="stylesheet" href="css/tite_styles.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="css/custom-theme/jquery-ui-1.8rc1.custom.css" type="text/css" media="screen" title="no title" charset="utf-8">
</head>
<body>
<div id="contents">
View TiteWalk_Screencast2_Source.html
<html>
<head>
<link rel="stylesheet" href="css/tite_styles.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="css/custom-theme/jquery-ui-1.8rc1.custom.css" type="text/css" media="screen" title="no title" charset="utf-8">
<style type="text/css" media="screen">
.online {
background: -webkit-gradient(linear, left top, left bottom, from(#01B201), to(#018301));
-webkit-border-radius: 10px;
}
View TiteWalk_Screencast1_Source.html
<html>
<head>
</head>
<body style="background-color:#1c1c1c;margin:0">
<div style="border-top:1px solid #404040">
<div style="color:#fff;;padding:10px">Welcome to Titanium</div>
</div>
<script type="text/javascript" src="jquery-1.3.2.js"></script>
View Titanium_Debugging_Helps.js
// Create an alert
var a = Titanium.UI.createAlertDialog();
a.setTitle('Table View Test')
a.setMessage('row ' + eventObject.row + ' index ' + eventObject.index + ' section ' + eventObject.section + ' rowData ' + eventObject.rowData + ' [eventObject.index].id: ' + rIndex.rosterID);
a.show();
thisID = $(eventObject.row + " id");
/correct formatting for a nested field in the dataArray
Titanium.API.debug('=================== rosterID: ' + dataArray[eventObject.index].rosterID );