This file contains hidden or 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
#!/bin/sh | |
# This shell script is PUBLIC DOMAIN. You may do whatever you want with it. | |
TOGGLE=$HOME/.toggle | |
if [ ! -e $TOGGLE ]; then | |
touch $TOGGLE | |
xrandr --output HDMI2 --auto --left-of VGA1 | |
pactl set-card-profile 0 output:hdmi-stereo-extra2 | |
else |
This file contains hidden or 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
<style> | |
.guide-container{ | |
height: 450px; | |
width: 750px; | |
overflow-x: scroll; | |
overflow-y: hidden; | |
direction: rtl; | |
} |
This file contains hidden or 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
ScrollLock:: | |
switch := !switch | |
If (switch) | |
usePlaybackDevice(1) | |
else | |
usePlaybackDevice(4) | |
return | |
usePlaybackDevice(device) { | |
Run, mmsys.cpl |
This file contains hidden or 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
$ grunt --gruntfile /home/roni/web/the-shelf/Gruntfile.js serve | |
Running "clean:server" (clean) task | |
Cleaning .tmp...OK | |
Running "bowerInstall:app" (bowerInstall) task | |
Running "concurrent:server" (concurrent) task | |
Running "copy:styles" (copy) task |
This file contains hidden or 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 class="no-js" lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body ng-app="playground"> |
This file contains hidden or 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
'use strict'; | |
/** | |
* @ngdoc directive | |
* @name directive:distanceWidget | |
* @description | |
* # distanceWidget for angular-google-maps | |
*/ | |
angular.module('app') | |
.directive('distanceWidget', function (uiGmapIsReady, $filter) { |
This file contains hidden or 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 NorthEast = new google.maps.LatLng( | |
DefaultMapLocation.NorthEast.Latitude, | |
DefaultMapLocation.NorthEast.Longitude | |
); | |
var SouthWest = new google.maps.LatLng( | |
DefaultMapLocation.SouthWest.Latitude, | |
DefaultMapLocation.SouthWest.Longitude | |
); | |
var bounds = new google.maps.LatLngBounds(); |
This file contains hidden or 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
/** | |
* A distance widget that will display a circle that can be resized and will | |
* provide the radius in km. | |
* | |
* @param {google.maps.Map} map The map on which to attach the distance widget. | |
* | |
* @constructor | |
*/ |
This file contains hidden or 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 pairwise(arr, arg) { | |
var markerArr = []; | |
for (i=0;i<=arr.length-1;i++){ | |
for (x=i+1;x<=arr.length-1;x++){ | |
if ( !markerArr[x] && !markerArr[i]){ | |
if (arr[x]+arr[i]==arg){ | |
markerArr[x] = markerArr[i]= true; | |
} | |
} |
OlderNewer