Forked from Justin Noel's Pen Ionic - Attempts At Different Navigation Animations.
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
QQ = angular.module 'QQ', [] | |
# Enables Angular 1.3.x-like $q functionality. Example: | |
# qq (resolve, reject, notify) -> | |
# obj = doSomething 'parameter', resolve, reject | |
# obj.onprogress = notify | |
QQ.factory 'qq', ($q) -> | |
qq = (fn) -> | |
deferred = $q.defer() | |
fn deferred.resolve, deferred.reject, deferred.notify |
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-LxnSsOkFZMk1NCa6qHJOxw |
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
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync | |
xrandr --addmode VGA1 1920x1080_60.00 | |
xrandr --output VGA1 --mode 1920x1080_60.00 |
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 http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
<title>Node-Link Tree</title> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.25.0"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?1.25.0"></script> | |
<style type="text/css"> | |
circle.node { |
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
var moveInput = function(height) { | |
if (ionic.Platform.isAndroid()) { | |
// console.info('moveInput()', height, "Wait, what is $scope.keyboardHeight", $scope.keyboardHeight) | |
height = height || 0; | |
// if (height === 0) { | |
// document.getElementById('message-footer').setAttribute('style', 'margin-bottom: 0px;'); | |
// document.getElementById('message-wrapper').setAttribute('style', 'height: auto'); | |
// } else { | |
// document.getElementById('message-footer').setAttribute('style', ['margin-bottom: ', height.toString(), 'px;'].join('')); | |
// document.getElementById('message-wrapper').setAttribute('style', ['height: ', window.innerHeight - $scope.keyboardHeight - 90, 'px;'].join('')); |
# This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
source: (typeahead, query) ->
# this function receives the typeahead object and the query string
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
if [ -f "$rvm_path/scripts/rvm" ] && [ -f ".rvmrc" ]; then | |
source "$rvm_path/scripts/rvm" | |
source ".rvmrc" | |
fi |
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 calcAge(isodatestring) { | |
if (isodatestring) | |
return Math.round(new Date() - Date.parse(isodatestring)) / (24*60*60*1000); | |
return 0; | |
} | |
function formatAge(age) { | |
var ret2 = ''; | |
var mins_ago = age * 24 * 60; | |
if (mins_ago <= 1) { |
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
Chat.shuffle = function() { | |
_chatThreads.forEach(function(t) { | |
t.latest_snippet.created_at = (new Date().getTime()) + Math.random() * 1000000; | |
}); | |
Chat.notifyThreadsChanged(); | |
} |