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
| ABOUT CONTACT RSS | |
| history print | |
| main | |
| Welcome | |
| The European Agenda for Culture | |
| SEARCH | |
| WORKSHOPS |
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
| ;;;;;;;;;;;;;;;;;;;;;;; AMBIANT HOME;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| (add-to-list 'org-publish-project-alist | |
| '("ambiantHome" | |
| :base-directory "~/Dropbox/Sites.org/ambiant/home" | |
| :base-extension "org" | |
| :publishing-directory "~/Dropbox/Sites.html/ambiant" | |
| :section-numbers nil | |
| :table-of-contents nil | |
| :recursive t | |
| :publishing-function org-publish-org-to-html |
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
| QPenPrinter.print { | p | | |
| var font; | |
| font = Font.default.size_(6); | |
| Pen.fillColor = Color.black; | |
| (1..100) * 7 do: { | i, j | | |
| j = j / 1000000; | |
| Pen.stringCenteredIn(j.asString, Rect(0, i - 5, 45, 8), font); | |
| Pen.width = j; | |
| Pen.line(50@i, 400@i); | |
| Pen.stroke; |
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
| ( | |
| SynthDef("releaser", { | gate = 1 | | |
| var env; | |
| env = Env([0, 1, 0], [0.04, 6.0], releaseNode: 1); | |
| Out.ar(0, WhiteNoise.ar(1) * EnvGen.kr(env, gate, doneAction: 2)) | |
| }).add; | |
| ) |
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
| ( | |
| SynthDef("releaser", { | gate = 1 | | |
| var env; | |
| env = Env([0, 1, 0], [0.04, 6.0], releaseNode: 1); | |
| Out.ar(0, WhiteNoise.ar(1) * EnvGen.kr(env, gate, doneAction: 2)) | |
| }).add; | |
| ) |
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
| // Prep | |
| Server.default.boot; | |
| Server.default.scope(8); | |
| ( | |
| ~play = { | path, out = 0 | | |
| if (~buffer.notNil) { ~buffer.free }; | |
| Buffer.read( | |
| Server.default, path, action: { | buffer, out = 0 | | |
| ~buffer = buffer; |
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
| /* Playing a sound file to an internal bus and then using that internal bus as input for effects. | |
| This example assumes that we are playing a stereo sound file. For different number of channels, | |
| edit the code. | |
| */ | |
| // Prep | |
| Server.default.boot; |
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
| ( | |
| w = Window().front; | |
| w.view.layout = HLayout( | |
| *({ Slider() } ! 10) | |
| ) |
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
| * web site programming+publishing | |
| ** password protection with htaccess | |
| http://www.htaccesstools.com/articles/password-protection/ | |
| PASSWORD PROTECTION WITH HTACCESS | |
| With .htaccess it is very easy to password protect a folder or directory. The method is called htaccess password protection or htaccess authentication, and works by uploading two files called .htaccess and .htpasswd in the directory you want to password protect. The htaccess file should contain the following: | |
| AuthType Basic |
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
| http://www.coolestguidesontheplanet.com/downtown/get-apache-mysql-php-and-phpmyadmin-working-osx-109-mavericks | |