Skip to content

Instantly share code, notes, and snippets.

View carloscarcamo's full-sized avatar
🏠
Working from home

Carlos Cárcamo carloscarcamo

🏠
Working from home
View GitHub Profile
@carloscarcamo
carloscarcamo / generator.rb
Last active December 31, 2015 16:19 — forked from kevinkorb/generator.rb
Aptana Getters and Setters generator for php.
require 'ruble'
bundle do |bundle|
bundle.display_name = 'phpGetterSetterGenerator'
end
@@COUNT = 1
command 'Getter/Setter generator' do |cmd|
cmd.scope = 'source.php'
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
<meta charset="utf-8">
<title>CSS Classes and Styles
</title>
<style>
.error{background-color:red;}
.warning{background-color:yellow;}
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
<meta charset="utf-8">
<title>Shopping Cart</title>
</head>
<body ng-app='shoppingCart'>
<div ng-controller="CartController">
<div ng-repeat="item in items">
<!DOCTYPE html>
<html ng-app='ShoppingModule'>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
<meta name="description" content="Dependencies with Modules"/>
<meta charset="utf-8">
<title>Dependencies with Modules
</title>
</head>
<body ng-controller="ShoppingController">
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
<meta name="description" content="[filters]" />
<meta charset="utf-8">
<title>Filters</title>
</head>
<body ng-app='HomeModule' ng-controller="HomeController">
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[add your bin description]" />
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<input type="text" id="key" name="key"/>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js" type="text/javascript"></script>
<script src="skulpt.min.js" type="text/javascript"></script>
<script src="skulpt-stdlib.js" type="text/javascript"></script>
</head>
<body>
<IfModule mod_rewrite.c>
RewriteEngine On
# !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading
# slashes.
# If your page resides at
# http://www.example.com/mypage/test1
# then use
# RewriteBase /mypage/test1/
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
#!/bin/bash
# for an "svn pristine text not present" error like this:
# svn: E155010: Pristine text 'd6612ee6af5d9fb4459cbe7e2e8e18f7fb4201f8' not present
# you can delete the file and retrieve it with svn up
# (if you have local modifications, make up your own plan)
# -
# Run this script from the root of the working copy.
# It retrieves the file that's causing the error from wc.db
# usage example : ./svn-pristine-find.sh d6612ee6af5d9fb4459cbe7e2e8e18f7fb4201f8
// See comments below.
// This code sample and justification brought to you by
// Isaac Z. Schlueter, aka isaacs
// standard style
var a = "ape",
b = "bat",
c = "cat",
d = "dog",