Skip to content

Instantly share code, notes, and snippets.

View leopic's full-sized avatar

Leo Picado leopic

View GitHub Profile
<VirtualHost *:80>
ServerName admin.stealnation.com
#ServerName admin.stealnetwork.com
ServerAlias www.admin.stealnetwork.com admin.stealnation.com admn.stealnation.com
DocumentRoot /Users/leo/work/steals/sites/admin/public
Include /etc/apache2/other/shared/php
<Directory /Users/leo/work/steals/sites/admin/public>
Include /etc/apache2/other/shared/zend_directory
</Directory>
CustomLog /Users/leo/work/steals/logs/admin-access.log common

Configure Apache Path Environment Variable on Mac OSX

Problem: Apache2/PHP did not find a program to execute on its configured path

Solution: Add a new path of /usr/local/bin to Apache2's path where the program was installed

  1. Edit the Apache2 plist file with whatever editor you like (example using vim):

     $ sudo vim /System/Library/LaunchDaemons/org.apache.httpd.plist
    
requirejs.config({
paths: {
jquery: "//cdnjs.cloudflare.com/ajax/libs/jquery/1.7.2/jquery.min",
jquery_ui: "//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min",
jquery_block_ui: "//cdnjs.cloudflare.com/ajax/libs/jquery.blockUI/2.66.0-2013.10.09/jquery.blockUI.min",
jquery_mask: "//cdnjs.cloudflare.com/ajax/libs/jquery.maskedinput/1.3.1/jquery.maskedinput.min",
underscore: "//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.6.0/underscore-min"
}
});
{
"name": "bn-native-services",
"version": "0.0.1",
"dependencies": {
"async": {
"version": "0.8.0",
"from": "async@*",
"resolved": "https://registry.npmjs.org/async/-/async-0.8.0.tgz"
},
"cheerio": {
@leopic
leopic / my-answer.js
Created May 3, 2014 17:14
Code Academy Parse Excercise 4
$(window).on("html_loaded", function(e) {
$(".submit_button").click(function(e) {
// 1. Create a "Comment" subclass of Parse.Object
var Comment = Parse.Object.extend('Comment');
// 2. Create a new instance of this subclass
var myComment = new Comment();
// 3. Add some data to the "text" and "likes" keys
myComment.set('text', '3 lot of th1ngs!');
<!DOCTYPE html>
<html>
<head>
<script src="http://jashkenas.github.io/underscore/underscore-min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<h3>pluck wanna be</h3>
<pre id="output"></pre>
<html>
<head>
<title>testing webview communication</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
font-family: 'Helvetica Neue', 'Arial', sans-serif;
font-size: 250%;
margin: 3% auto;
width: 90%;
<html>
<head>
<title>testing webview communication</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
font-family: 'Helvetica Neue', 'Arial', sans-serif;
font-size: 250%;
margin: 3% auto;
width: 90%;
<html>
</head>
<title>testing webview communication</title>
<style>
body {
font-family: 'Helvetica Neue', 'Arial', sans-serif;
font-size: 125%;
margin: 3% auto;
width: 90%;
}
<html>
</head>
<title>testing webview communication</title>
<style>
body {
font-family: 'Helvetica Neue', 'Arial', sans-serif;
font-size: 125%;
margin: 3% auto;
width: 90%;
}