This example JSON responds in accordance with the JSON API 1.0 specification
Available endpoints:
# Add the below to your ~/.bashrc file (with the path changed) and then run 'source ~/.bashrc' to enable the command | |
# Launch Easy Tester with '$ et' | |
easy_tester() { | |
source /path/to/easy_tester.sh | |
} | |
alian et=easy_tester() |
# Custom SSO logger | |
require 'singleton' | |
class SSOLogger < Logger | |
include Singleton | |
def initialize | |
super(Rails.root.join('log/sso.log')) | |
self.formatter = formatter() | |
self | |
end |
- content_for :title do | |
My super sweet dashboard | |
.gridster | |
%ul | |
%li{"data-col" => "1", "data-row" => "1", "data-sizex" => "1", "data-sizey" => "1"} | |
%div{"data-id" => "status", "data-moreinfo" => "Protip: You can drag the widgets around!", "data-text" => "", "data-title" => "Uniprix-Printemps", "data-view" => "Text"} | |
%li{"data-col" => "1", "data-row" => "1", "data-sizex" => "1", "data-sizey" => "1"} | |
%div{"data-id" => "participant_count", "data-title" => "Participants", "data-view" => "Number"} | |
%li{"data-col" => "1", "data-row" => "1", "data-sizex" => "1", "data-sizey" => "1"} |
# Format a single date instance with an optional time | |
# | |
# @author Matt Rayner | |
# @since 1.0.0 | |
# | |
# @attr [Date] Date The date that we are formatting | |
# @attr [String] Time An optional time value for this date | |
class DateFormatter | |
attr_reader :date, :time |
@echo off | |
echo Creating a local redirect | |
echo ============================= | |
SET /P IP=HOST IP: %=% | |
echo ============================= | |
SET /P URL=URL: %=% | |
echo ============================= | |
echo Adding to hosts file: | |
echo. | |
echo %IP% %URL% |
#!/bin/bash | |
echo ========================== | |
echo Local Rails Launcher | |
echo ---- | |
echo | |
echo Getting local IP Address | |
echo -------------------------- | |
echo |
This example JSON responds in accordance with the JSON API 1.0 specification
Available endpoints:
Within Classes>AppDeligate.m
scroll to the bottom and remove the references to Portrait and UpsideDown. It sould look like this when finished:
- (NSUInteger)application:(UIApplication*)application supportedInterfaceOrientationsForWindow:(UIWindow*)window
{
// iPhone doesn't support upside down by default, while the iPad does. Override to allow all orientations always, and let the root view controller decide what's allowed (the supported orientations mask gets intersected).
NSUInteger supportedInterfaceOrientations = (1 << UIInterfaceOrientationLandscapeLeft) | (1 << UIInterfaceOrientationLandscapeRight);
return supportedInterfaceOrientations;
}
<?php | |
class ReportAdminExtension extends Extension { | |
public function updateEditForm($form) { | |
$gridField = $form->Fields()->dataFieldByName('Reports'); | |
if ($gridField instanceof GridField) { | |
$columns = $gridField->getConfig()->getComponentByType('GridFieldDataColumns'); | |
$columns->setFieldFormatting(array( |