openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem
http-server -S -C cert.pem -o
Starting up http-server, serving ./ through https
Available on:
https:127.0.0.1:8080
https:192.168.1.101:8080
https:192.168.1.104:8080
- https://stackoverflow.com/questions/20454199/how-to-use-a-different-version-of-python-during-npm-install
npm install --python=python2.7
ornpm install --python=python2
- or whatever resolveswhich python2
in your shellnpm config set python python2.7
sets this permanently
- install homebrew
- Open Powershell as Administrator and run:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- Open the Microsoft Store, search for Ubuntu, and install
- Launch Ubuntu and create your Linux user
- Open a shell into WSL (I like cmder so far: http://cmder.net/)
- In Windows, download and install MobaXterm (free version): https://mobaxterm.mobatek.net/download.html
- Make sure X server is running
- You’ll always need to run MobaXterm, and in the top right corner of the app there’s an "X server" button. Make sure it’s running.
- In mobaxterm settings -> x11 -> set OpenGL Acceleration to: Hardware
- WSL won't have a display environment variable set by default, so tell it manually to connect to the first display:
export DISPLAY=:0.0
- Test an x11 app:
sudo apt-get install x11-apps
#Master Controller Update Instructions
- Login to each Master Controller through LogMeIn
- Open a Terminal
- cd ~/Sites/hearst-window
git pull
- Any running process should detect changes and restart automatically.
pm2 logs
to view process logs.
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
who | |
https://vimeo.com/4856917#t=00m56s | |
what | |
https://vimeo.com/4856917#t=02m40s | |
example intro | |
https://vimeo.com/4856917#t=22m05s | |
example intro2 | |
https://vimeo.com/4856917#t=22m32s | |
example play | |
https://vimeo.com/4856917#t=23m30s |
Here are the steps we've found for creating an html5 banner using Adobe Edge.
- Open Edge
- Create New
- Open the html file created in your project and add the following code in the header, before the Adobe Edge Runtime comment:
<meta name="ad.size" content="width=728,height=90"><script>var clickTag = "http://www.google.com";</script>
Be sure to change the height and width to the appropriate size of your ad. - And finally, wrap div#Stage in an anchor tag. Be sure to mantain the proper classname. For instance: `
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 Slideshow(){ | |
$('.module-slideshow').each(function(index, item){ | |
var width = 0, height; | |
$(item).find('.module-slideshow__item').each(function(index1, item1){ | |
width += + $(item1).width()+3; | |
$(item1).width($(item1).width()); | |
$(item1).height($(item1).height()); | |
}); |
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
scale(x, in_min, in_max, out_min, out_max){ | |
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min; | |
} |
NewerOlder