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
| @mixin center_aspect($width, $aspect) { | |
| width: $width; | |
| $height: $width * $aspect; | |
| height: $height; | |
| max-height: 90%; | |
| left: 50%; | |
| top: 50%; | |
| margin-left: - ($width / 2); | |
| margin-top: - ($height / 2); | |
| } |
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
| // Global variable declarations | |
| var i = 1; | |
| var nudge = -50; | |
| var bigNudge = -100; | |
| var imgs = document.getElementsByTagName('img'); | |
| $( document ).ready(function(){ |
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
| $(document).ready( function() { | |
| // This is the proper way to use blur.js. Too bad it only works on one element... | |
| $('.b1').blurjs({ // Area to be blurred. | |
| source: '.b1', // Target photo. | |
| radius: 15 // In THIS CASE... they happen to be the same for cleaner markup. | |
| }); | |
| /** |
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> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <title>Your Website</title> | |
| </head> | |
| <body> |
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 | |
| userresources=$HOME/.Xresources | |
| usermodmap=$HOME/.Xmodmap | |
| sysresources=/etc/X11/xinit/.Xresources | |
| sysmodmap=/etc/X11/xinit/.Xmodmap | |
| # merge in defaults and keymaps | |
| if [ -f $sysresources ]; then |
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
| [Unit] | |
| Description=Start test | |
| [Service] | |
| WorkingDirectory=/home/admin | |
| Type=simple | |
| ExecStart=/bin/bash sync_test1.sh start | |
| KillMode=process | |
| [Install] |
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
| [Unit] | |
| Description=Start rsync | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/usr/bin/sync_test | |
| [Install] | |
| WantedBy=multi-user.target |
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 | |
| while inotifywait -e create photos; do | |
| rsync -r -e 'ssh -p 28000' photos/ [email protected]:/srv/http/trailcam/vps_test | |
| done |
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 logFunction() { | |
| var test = "Yay... my function is working"; | |
| console.log(test); | |
| } | |
| logFunction; |
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
| const request = require('request'); | |
| var url = {deals: 'https://api.pipedrive.com/v1/deals?start=0&api_token=a74cbe24c7ac34f45256356a747eaebf96445c94', | |
| activities: 'https://api.pipedrive.com/v1/activities?start=0&api_token=a74cbe24c7ac34f45256356a747eaebf96445c94'}; | |
| function getDeals (url, callback) { | |
| request(url, function (error, response, body) { | |
| if (error) { | |
| return console.log(error); |
OlderNewer