This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Stream example ruby app", | |
"description": "A simple Pinterest clone built with Rails 4 and stream_rails", | |
"website": "https://getstream.io", | |
"keywords": [ | |
"getstream.io", | |
"HTML5", | |
"PHP" | |
], | |
"repository": "https://github.com/GetStream/stream-example-ruby", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="initial-scale=1, width=device-width"> | |
<title></title> | |
<!-- compiled css output --> | |
<link href="css/ionic.app.css" rel="stylesheet"> | |
<link href="css/style.css" rel="stylesheet"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function resort(tableRange, columnToSortBy){ | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var range = sheet.getRange(tableRange); | |
range.sort( { column : columnToSortBy, ascending: false } ); | |
} | |
// just a wrapper; timestamp is just anti-cacheing trick | |
function myGetRangeByName(n, timestamp) { | |
var sheet = SpreadsheetApp.getActiveSpreadsheet(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/processing.js/1.4.9/processing.js"></script> | |
</head> | |
<body> | |
<div> | |
<canvas id="canvas" width="600" height="600" /> | |
</div> | |
The content of the body element is displayed in your browser. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSLayoutConstraint+Init.swift | |
// Created by Benjamin Wheeler starting 6/2013 | |
// | |
// | |
import UIKit | |
// improves the clarity and flexibility of NSLayoutConstraint | |
extension NSLayoutConstraint { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind." | |
--Bernard Baruch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.config(['$stateProvider', '$urlRouterProvider', '$locationProvider', | |
function($stateProvider, $urlRouterProvider, $locationProvider) { | |
$stateProvider.state('root', { | |
url: '/', | |
templateUrl: 'root.html', | |
controller: 'RootCtrl' | |
}) | |
.state('program', { | |
url: '/program/:program_id', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<!-- Pleace this snippet right after opening the head tag to make it work properly --> | |
<!-- This code is licensed under GNU GPL v3 --> | |
<!-- You are allowed to freely copy, distribute and use this code, but removing author credit is strictly prohibited --> | |
<!-- Generated by http://insider.zone/tools/client-side-url-redirect-generator/ --> | |
<!-- REDIRECTING STARTS --> | |
<link rel="canonical" href="http://destinationsitehere.com"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// data.json could look like: | |
// { | |
// "menu": [{"name": "Contact Us"}, {"name": "About Us"}] | |
// } | |
// app.js could look like: | |
var app = angular.module('myApp'); | |
app.factory('commonData', ['$http', '$q', function($http, $q){ |