Skip to content

Instantly share code, notes, and snippets.

Dede Hidayat deehidayat

Block or report user

Report or block deehidayat

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Struktur Folder Merhcant Kreasi Studio
The best cafe/
├── 2017-08-12
│   ├── images
│   │   ├── 546ee452-9418-41ef-87ff-e9b7cc203140.png
│   │   └── ab077f39-7bb6-46fe-ab45-61e97c04ae64.jpg
│   └── slots
│   ├── 06
│   │   └── data.json
│   ├── 08
│   │   └── data.json
View Angular-Gmaps.html
<!DOCTYPE HTML>
<html>
<head>
<style>
html, body { height: 100%; }
.angular-google-map-container { height: 100vh; }
</style>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js">
</script>
@deehidayat
deehidayat / NewRelicPatch.php
Created Feb 10, 2016 — forked from migrs/Kernel.php
newrelic patch for laravel5.2
View NewRelicPatch.php
<?php
namespace App\Http\Middleware;
use Closure;
class NewRelicPatch
{
public function handle($request, Closure $next)
{
View Crossdomain.xml
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html -->
<!-- Most restrictive policy: -->
<site-control permitted-cross-domain-policies="none"/>
@deehidayat
deehidayat / Symfony2 .htaccess
Last active Aug 29, 2015
Symfony2 .htaccess
View Symfony2 .htaccess
# Use the front controller as index file. It serves as a fallback solution when
# every other rewrite/redirect fails (e.g. in an aliased environment without
# mod_rewrite). Additionally, this reduces the matching process for the
# start page (path "/") because otherwise Apache will apply the rewriting rules
# to each configured DirectoryIndex file (e.g. index.php, index.html, index.pl).
DirectoryIndex app_dev.php
<IfModule mod_rewrite.c>
RewriteEngine On
@deehidayat
deehidayat / PAYPAL-CC-Response.json
Created May 13, 2014
Response untuk pembayaran menggunakan Credit Card di website PayPal
View PAYPAL-CC-Response.json
{
"id": "PAY-84289121AD707525RKNYYTDQ",
"create_time": "2014-05-13T02:55:10Z",
"update_time": "2014-05-13T02:59:22Z",
"state": "approved",
"intent": "sale",
"payer": {
"payment_method": "paypal",
"payer_info": {
"email": "email@credit-card.com",
@deehidayat
deehidayat / javascript_resources.md
Created May 13, 2014 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.
View javascript_resources.md

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@deehidayat
deehidayat / rails_resources.md
Created May 13, 2014 — forked from jookyboi/rails_resources.md
Rails-related Gems and guides to accelerate your web project.
View rails_resources.md

Gems

  • Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
  • rabl - General ruby templating with json, bson, xml, plist and msgpack support
  • Thin - Very fast and lightweight Ruby web server
  • Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
  • SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
  • Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
  • [factory_girl](h
@deehidayat
deehidayat / 0_reuse_code.js
Created May 13, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.