commit
stringlengths
40
40
old_file
stringlengths
2
205
new_file
stringlengths
2
205
old_contents
stringlengths
0
32.9k
new_contents
stringlengths
1
38.9k
subject
stringlengths
3
9.4k
message
stringlengths
6
9.84k
lang
stringlengths
3
13
license
stringclasses
13 values
repos
stringlengths
6
115k
e6fd026f91307fc75f35c93c7298b45fa3dad5a9
tools/openBrowser/openChrome.applescript
tools/openBrowser/openChrome.applescript
(* Copyright (c) 2015-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. *) on run argv set theURL t...
(* Copyright (c) 2015-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. *) property targetTab: null p...
Upgrade apple script
Upgrade apple script
AppleScript
mit
wellyshen/react-cool-starter,wellyshen/react-cool-starter,zolcman/calendartest,wellyshen/react-cool-starter
dd9a51a9f691b4adf1334efc2334e1930ef6877d
XcodeWayExtensions/Script/XcodeWayScript.scpt
XcodeWayExtensions/Script/XcodeWayScript.scpt
use scripting additions use framework "Foundation" property NSString : a reference to current application's NSString -- Helper on myRemoveLastPath(myPath) set myString to NSString's stringWithString:myPath set removedLastPathString to myString's stringByDeletingLastPathComponent removedLastPathString as text end myRe...
use scripting additions use framework "Foundation" property NSString : a reference to current application's NSString -- Helper on myRemoveLastPath(myPath) set myString to NSString's stringWithString:myPath set removedLastPathString to myString's stringByDeletingLastPathComponent removedLastPathString as text end myRe...
Fix myOpenGitHub
Fix myOpenGitHub
AppleScript
mit
onmyway133/XcodeWay,onmyway133/XcodeWay
5fffed4f40de82d1f1a07ad11b3ba3312a82191a
AppleScript/Safari-OpenAllStarredArticles.applescript
AppleScript/Safari-OpenAllStarredArticles.applescript
-- This script creates a new Safari window with all the starred articles in a NetNewsWire instance, each in its own tab -- declare the safariWindow property here so we can use is throughout the whole script property safariWindow : missing value -- the openTabInSafari() function opens a new tab in the appropriate win...
-- This script creates a new Safari window with all the starred articles in a NetNewsWire instance, each in its own tab -- declare the safariWindow property here so we can use is throughout the whole script property safariWindow : missing value -- the openTabInSafari() function opens a new tab in the appropriate win...
Align indentation in AppleScript example file
Align indentation in AppleScript example file
AppleScript
mit
brentsimmons/Evergreen,brentsimmons/Evergreen,brentsimmons/Evergreen,brentsimmons/Evergreen
fdf465938f7776bb95d2a33e54032dd7a80c4bbb
contrib/mac_developer_scripts.app/Contents/Resources/Scripts/main.scpt
contrib/mac_developer_scripts.app/Contents/Resources/Scripts/main.scpt
FasdUAS 1.101.10 k l r J   m  puma -p 3000  mJruby script/websocket-server.rb start m&guard -P ...
FasdUAS 1.101.10 k l r J   m  puma -p 3000  mJruby script/websocket-server.rb start m&guard -P ...
update dev autostart script
update dev autostart script
AppleScript
agpl-3.0
monotek/zammad,zammad/zammad,monotek/zammad,zammad/zammad,monotek/zammad,monotek/zammad,zammad/zammad,zammad/zammad,zammad/zammad,zammad/zammad,monotek/zammad,monotek/zammad
67b1c923355fd63b39b8b1d5ed2e4938a925a544
resources/config.applescript
resources/config.applescript
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 25 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- property homeFolder : (path to home folder as text) property libr...
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 25 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- property homeFolder : (path to home folder as text) property libr...
Fix bug with previous fix; duplicates are now gone
Fix bug with previous fix; duplicates are now gone
AppleScript
mit
caleb531/play-song,caleb531/play-song
d0d5e39820d731938e60766c80c1233abf211bf7
Scripts/select-simulator-device.applescript
Scripts/select-simulator-device.applescript
set simulatedDevice to (item 1 of argv) tell application "iPhone Simulator" activate end tell tell application "System Events" tell process "iPhone Simulator" tell menu bar 1 tell menu bar item "Hardware" tell menu "Hardware" tell menu item "Device" tell menu "Device" click menu item simu...
on run argv set simulatedDevice to (item 1 of argv) tell application "iPhone Simulator" activate end tell tell application "System Events" tell process "iPhone Simulator" tell menu bar 1 tell menu bar item "Hardware" tell menu "Hardware" tell menu item "Device" tell menu "Device" ...
fix apple script to select device
fix apple script to select device
AppleScript
mit
blazingcloud/sealant,blazingcloud/sealant,blazingcloud/sealant,blazingcloud/sealant
a8d7790d2f24e3e9463a2305c3ebbb6ea3f8a68d
org.hidetake.osx-go-to-bed.applescript
org.hidetake.osx-go-to-bed.applescript
#!/usr/bin/osascript set awakeTime to date "8:00:00" set {hours: remainHours, minutes: remainMinutes} to (date "0:0") + (awakeTime - (current date)) set messageTitle to "Remaining " & remainHours & " hours " & remainMinutes & " minutes" set messageDescription to "now " & time string of (current date) display notific...
#!/usr/bin/osascript -- awake time in next morning set awakeTime to date "8:00:00" -- calculate and notify remaining time set {hours: remainHours, minutes: remainMinutes} to (date "0:0") + (awakeTime - (current date)) set messageTitle to "Remaining " & remainHours & " hours " & remainMinutes & " minutes" set message...
Add comment
Add comment
AppleScript
apache-2.0
int128/osx-go-to-bed
8456f6877d17a8b146b5bd3f5b14f8edb695208a
QuickStats/QuickStats.applescript
QuickStats/QuickStats.applescript
property pTitle : "OmniFocus: Quick Stats" property pVersion : "2.07" property pstrDBPath : "$HOME/Library/Caches/com.omnigroup.OmniFocus/OmniFocusDatabase2" property pstrMinOSX : "10.6" property pTimeOut : 20 -- Ver 0.8 adds clipboard option to dialogue -- Ver 0.9 gives an error message if the cache schema has chan...
property pTitle : "OmniFocus: Quick Stats" property pVersion : "2.07" property pstrDBPath : "$HOME/Library/Caches/com.omnigroup.OmniFocus/OmniFocusDatabase2" property pstrMinOSX : "10.6" property pTimeOut : 20 -- Original version: https://github.com/RobTrew/tree-tools/blob/master/OmniFocus%20scripts/Statistics/Quick...
paste in license
paste in license
AppleScript
apache-2.0
brettporter/omnifocus-tools
e183496288fe064a8113987f3140fb0fac57c1c5
itunes-concatenator/itunes-concatenator/DASAppDelegate.applescript
itunes-concatenator/itunes-concatenator/DASAppDelegate.applescript
-- -- DASAppDelegate.applescript -- itunes-concatenator -- -- Created by David Schlachter on 2014-08-26. -- Copyright (c) 2014 Red Eft Software. All rights reserved. -- -- via http://macscripter.net/viewtopic.php?pid=173787 ; apparently needed for using arrays script DASAppDelegate property parent : class "NSObj...
-- -- DASAppDelegate.applescript -- itunes-concatenator -- -- Created by David Schlachter on 2014-08-26. -- Copyright (c) 2014 Red Eft Software. All rights reserved. -- -- via http://macscripter.net/viewtopic.php?pid=173787 ; apparently needed for using arrays script DASAppDelegate property parent : class "NSObj...
Update the text fields when tracks are loaded
Update the text fields when tracks are loaded
AppleScript
bsd-2-clause
davidschlachter/itunes-concatenator,davidschlachter/itunes-concatenator
8ddc6261bdb01edc697bf745d38d434e3bbd921d
scripts/reset_simulator.applescript
scripts/reset_simulator.applescript
(* commented out printer section for now tell application "iPhone Simulator" to activate tell application "System Events" tell process "iPhone Simulator" tell menu bar 1 tell menu bar item "File" tell menu "File" click menu item "Open Printer Simulator" ...
(* commented out printer section for now tell application "iPhone Simulator" to activate tell application "System Events" tell process "iPhone Simulator" tell menu bar 1 tell menu bar item "File" tell menu "File" click menu item "Open Printer Simulator" ...
fix apple script
fix apple script
AppleScript
apache-2.0
ifreecarve/Illuminator,ifreecarve/Illuminator,ifreecarve/Illuminator,drptbl/Illuminator,drptbl/Illuminator,drptbl/Illuminator,ifreecarve/Illuminator,paypal/Illuminator,drptbl/Illuminator,paypal/Illuminator
acc8f3bba9d56463f8409c498fedf0bd403bc212
applescripts/open_chrome_tabs.applescript
applescripts/open_chrome_tabs.applescript
set myTabs to {"http://app.getsentry.com/", "http://github.com/uberVU/thehole/issues/assigned/palcu?direction=desc&labels=&milestone=&page=1&sort=updated&state=open/", "https://mail.google.com/mail/u/1/?shva=1#inbox", "https://drive.google.com/a/hootsuite.com/#folders/0BwuFsHJDxJWPYmxXQ1VQVlN6T2M"} tell application "Go...
set myTabs to {"https://github.com/search?utf8=%E2%9C%93&q=assignee%3Apalcu+state%3Aopen&type=Issues&ref=searchresults", "https://mail.google.com/mail/u/1/?shva=1#inbox", "https://drive.google.com/a/hootsuite.com/#folders/0BwuFsHJDxJWPYmxXQ1VQVlN6T2M"} tell application "Google Chrome" activate repeat with i in myTabs...
Update URLs that open at the office
Update URLs that open at the office
AppleScript
mit
smathson/dotfiles
96de2530f5a16698e08b5e9708ac0f2effe7d514
applescripts/quit_after_work.applescript
applescripts/quit_after_work.applescript
set current_path to POSIX path of ((path to me as text) & "::") -- get work apps set appList to {} set myApps to paragraphs of (read current_path & "apps.txt") repeat with nextLine in myApps if length of nextLine is greater than 0 then copy (nextLine as string) to the end of appList end if end repeat -- close wor...
set current_path to POSIX path of ((path to me as text) & "::") -- get work apps set appList to {} set myApps to paragraphs of (read current_path & "apps.txt") repeat with nextLine in myApps if length of nextLine is greater than 0 then copy (nextLine as string) to the end of appList end if end repeat -- close wor...
Remove clean_repos
Remove clean_repos
AppleScript
mit
smathson/dotfiles
cf8622b0f042801ab8692e2eb43371dff3ebdb60
status.applescript
status.applescript
tell application "Finder" set json_path to file "json.scpt" of folder of (path to me) end tell set json to load script (json_path as alias) on is_running(appName) tell application "System Events" to (name of processes) contains appName end is_running set reply to json's createDict() if is_running("Hermes") then re...
tell application "Finder" set json_path to file "json.scpt" of folder of (path to me) end tell set json to load script (json_path as alias) on is_running(appName) tell application "System Events" to (name of processes) contains appName end is_running on hermes_status() global json set reply to json's createDict()...
Move script logic into hermes_status()
Move script logic into hermes_status()
AppleScript
mit
winny-/HermesRemote,winny-/HermesRemote
d0fc04949107552ad4ea8a8f4f296317b46bb12f
etc/pdf.scpt
etc/pdf.scpt
############################ # How to generate the PDFs # ############################ # 1. Generate Cover.pdf with latest version date # a. Create "ebook" folder in ~/Downloads # b. update date in cover.html # c. open in safari file:///Users/frank/Sites/ServerlessStackCom/etc/cover.html # d. "Export to PDF...
############################ # How to generate the PDFs # ############################ # 1. Generate Cover.pdf with latest version date # a. Create "ebook" folder in ~/Downloads # b. update date in cover.html # c. open in safari file:///Users/frank/Sites/ServerlessStackCom/etc/cover.html # d. "Export to PDF...
Fix pdf script
Fix pdf script
AppleScript
mit
AnomalyInnovations/serverless-stack-com,AnomalyInnovations/serverless-stack-com
4418fa31b3b45dde2bd5edca45c1a257b8dac412
thumbscrew.scpt
thumbscrew.scpt
-- thumbscrew.scpt -- usage: thumbscript.scpt <path_to_git_root_dir> <path_to_keynotePresentation> -- -- Will create scaled thumbnails of length `thumbSize` in the directory -- <path_to_presentation> property thumbSize : 480 on getImages(f) tell application "Finder" to return (files of folder f) as alias list end ge...
-- thumbscrew.scpt -- usage: thumbscript.scpt <path_to_git_root_dir> <path_to_keynotePresentation> -- -- Will create scaled thumbnails of length `thumbSize` in the directory -- <path_to_presentation> property thumbSize : 480 on getImages(f) tell application "Finder" to return (files of folder f) as alias list end ge...
make it work again
make it work again
AppleScript
mit
azizshamim/thumbscrew
5c02b150da5ab6e7b1f51a8e60c02359c47c8a57
etc/pdf.scpt
etc/pdf.scpt
############################ # How to generate the PDFs # ############################ # 1. Generate Cover.pdf with latest version date # a. Create "ebook" folder in ~/Downloads # b. update date in cover.html # c. open in safari file:///Users/frank/Sites/ServerlessStackCom/etc/cover.html # d. "Export to PDF...
############################ # How to generate the PDFs # ############################ # 1. Generate Cover.pdf with latest version date # a. Create "ebook" folder in ~/Downloads # b. update date in cover.html # c. open in safari file:///Users/frank/Sites/ServerlessStackCom/etc/cover.html # d. "Export to PDF...
Fix pdf script
Fix pdf script
AppleScript
mit
AnomalyInnovations/serverless-stack-com,AnomalyInnovations/serverless-stack-com
19668c09836a017b1c6d30494bd5ef7329197002
Release/dmg_growl.applescript
Release/dmg_growl.applescript
tell application "Finder" tell disk "Growl" open tell container window set current view to icon view set toolbar visible to false set statusbar visible to false --set the bounds to {30, 50, 579, 600} end tell close set opts to the icon view options of container window tell opts set icon size...
tell application "Finder" tell disk "Growl" open tell container window set current view to icon view set toolbar visible to false set statusbar visible to false --set the bounds to {30, 50, 579, 600} end tell close set opts to the icon view options of container window tell opts set icon size...
Save before committing!
Save before committing!
AppleScript
bsd-3-clause
tectronics/growl,CarlosCD/growl,tectronics/growl,nochkin/growl,Shalaco/shalzers-growl,nochkin/growl,nagyistoce/growl,coltonfisher/coltonfisher-growl,nkhorman/archive-growl,an0nym0u5/growl,nagyistoce/growl,xhruso00/growl,CarlosCD/growl,xhruso00/growl,CarlosCD/growl,CarlosCD/growl,Shalaco/shalzers-growl,Shalaco/shalzers-...
c374b0aa9f23e03575bbf91446b1027e0ba73fac
windowSizeAll.applescript
windowSizeAll.applescript
-- app to be excepted set expApp to {"thunderbird-bin", "XRG", "Skype"} -- app to be half size, in left monitor (0.7 times full) set halfSizeApp_L to {} -- app to be half size, in right monitor set halfSizeApp_R to {"AdobeReader"} -- app only to be moved, in left monitor set noResizeApp_L to {} -- app only to be mo...
-- app to be excepted set expApp to {"thunderbird-bin", "XRG", "Skype"} -- app to be half size, in left monitor (0.7 times full) set halfSizeApp_L to {} -- app to be half size, in right monitor set halfSizeApp_R to {"AdobeReader"} -- app only to be moved, in left monitor set noResizeApp_L to {} -- app only to be mo...
update from darwin11
update from darwin11
AppleScript
mit
rcmdnk/AppleScript
0a1bd353fcccc1551f34d13ae8eb8b6e2d015937
script/click_install.scpt
script/click_install.scpt
#!/usr/bin/env osascript -- Fist: Click Install Button delay 2.0 set timeoutSeconds to 2.0 set uiScript to "click UI Element 4 of window 1 of application process \"Install Command Line Developer Tools\"" my doWithTimeout(uiScript, timeoutSeconds) on doWithTimeout(uiScript, timeoutSeconds) set endDate to (current d...
#!/usr/bin/env osascript -- Fist: Click Install Button set timeoutSeconds to 2.0 set uiScript to "click UI Element 4 of window 1 of application process \"Install Command Line Developer Tools\"" my doWithTimeout(uiScript, timeoutSeconds) on doWithTimeout(uiScript, timeoutSeconds) set endDate to (current date) + time...
Remove delay
Remove delay
AppleScript
mit
k0kubun/rebuild,k0kubun/rebuild
24bae373e3eff663311b87f39ecaf2270add0bee
library/fmGUI_ObjManipulation/fmGUI_Popup_SelectByCommand.applescript
library/fmGUI_ObjManipulation/fmGUI_Popup_SelectByCommand.applescript
-- fmGUI_Popup_SelectByCommand({objRef:"", objValue:"", calcValue:null, selectCommand:"", clickIfAlreadySet:""}) -- Daniel A. Shockley, NYHTC -- Selects a choice from a popup menu (* REQUIRES: clickObjectByCoords fmGUI_SpecifyCalcWindowSet HISTORY: 2020-05-21 ( dshockley ): Try a 2nd time to click-and-wait fo...
-- fmGUI_Popup_SelectByCommand({objRef:"", objValue:"", calcValue:null, selectCommand:"", clickIfAlreadySet:""}) -- Daniel A. Shockley, NYHTC -- Selects a choice from a popup menu (* REQUIRES: clickObjectByCoords fmGUI_SpecifyCalcWindowSet HISTORY: 2020-05-21 ( dshockley ): Try a 2nd time to click-and-wait fo...
make popup menu selecting work
make popup menu selecting work
AppleScript
mit
NYHTC/applescript-fm-helper
f7e13b186448f0b101236405df90d7e5bbfc16c1
connector-osx-kn6.scpt
connector-osx-kn6.scpt
-- -- slideshow -- Observe and Control Slideshow Applications -- Copyright (c) 2014-2015 Ralf S. Engelschall <http://engelschall.com> -- -- This Source Code Form is subject to the terms of the Mozilla Public -- License (MPL), version 2.0. If a copy of the MPL was not distributed -- with this file, You can obtain o...
-- -- slideshow -- Observe and Control Slideshow Applications -- Copyright (c) 2014-2015 Ralf S. Engelschall <http://engelschall.com> -- -- This Source Code Form is subject to the terms of the Mozilla Public -- License (MPL), version 2.0. If a copy of the MPL was not distributed -- with this file, You can obtain o...
fix filename in comment
fix filename in comment
AppleScript
mpl-2.0
rse/slideshow,rse/slideshow
f100ca90f9855179d549d93f5d47bfcea6091d68
keynote.applescript
keynote.applescript
on newPresentation(themeName) tell application "Keynote" activate -- FIXME: Make this selectable? set targetWidth to 1024 -- 1440 <-- higher resolution set targetHeight to 768 -- 1080 <-- higher resolution set props to {document theme:theme (themeName as string), width:targetWidth, height:targetHeight} s...
on newPresentation(themeName) tell application "Keynote" activate -- FIXME: Make this selectable? set targetWidth to 1024 -- 1440 <-- higher resolution set targetHeight to 768 -- 1080 <-- higher resolution set props to {document theme:theme (themeName as string), width:targetWidth, height:targetHeight} s...
Remove FIXME: comments
Remove FIXME: comments
AppleScript
mit
persquare/md2keynote
7ef6ad3e6ed50045b124699e56e85215e978774b
alfred_script.applescript
alfred_script.applescript
on alfred_script(q) set AppleScript's text item delimiters to {" "} tell application "Google Chrome" if q is "" or q is "p" or q is "pp" or q is "play" or q is "pause" then set buttonClass to "play" set execCode to "$('." & buttonClass & "').first().click()" el...
on alfred_script(q) set AppleScript's text item delimiters to {" "} tell application "Google Chrome" if q is "" or q is "p" or q is "pp" or q is "play" or q is "pause" then set execCode to "document.getElementsByClassName('play')[0].click()" else if q is "next" or q is "sk...
Fix broken javascript calls
[#2]: Fix broken javascript calls At some point, using $() seems to have broken in Chrome. Replaced those calls with equivalent DOM calls in vanilla Javascript.
AppleScript
mit
tangledhelix/focusatwill-in-google-chrome,tangledhelix/focusatwill-in-google-chrome
18f3993c1bf2b5153b42e60900bfa056ecdb3a11
scripts/resetsimulator.applescript
scripts/resetsimulator.applescript
tell application "System Events" to tell process "iOS Simulator" activate set frontmost to true click menu item "Reset Content and Settings" of menu 0 of menu bar item "iOS Simulator" of menu bar 1 click button "Reset" of window "" return end tell
tell application "System Events" to tell process "iOS Simulator" activate set frontmost to true click menu item "Reset Content and Settings" of menu 0 of menu bar item "iOS Simulator" of menu bar 1 delay 0.1 tell application "System Events" to key code 36 -- click button "Reset" of window "" return end tell
Update reset sim script
Update reset sim script
AppleScript
mit
keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles
27662e0fbc68898a0673ac711c0413a1351880c7
uninstall.applescript
uninstall.applescript
property stdout : "" on run set newline to ASCII character 10 set stdout to stdout & " shutdown Terminal ..." & newline try tell application "Terminal" to quit on error set stdout to stdout & " Terminal was not running prior uninstallation" & newline end try set stdout to stdout & " remove TotalTermi...
property stdout : "" on run set newline to ASCII character 10 set stdout to stdout & " shutdown Terminal ..." & newline try tell application "Terminal" to quit on error set stdout to stdout & " Terminal was not running prior uninstallation" & newline end try set stdout to stdout & " shutdown TotalTerm...
add shutdown step for TotalTerminalCrashWatcher
add shutdown step for TotalTerminalCrashWatcher
AppleScript
bsd-3-clause
binaryage/totalterminal-installer
a66ad01492219045da0ae3888ef0da80168573dc
resources/config.applescript
resources/config.applescript
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 25 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- property homeFolder : (path to home folder as text) property libr...
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 25 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- property homeFolder : (path to home folder as text) property libr...
Add generic iTunes search as an additional fallback
Add generic iTunes search as an additional fallback
AppleScript
mit
caleb531/play-song,caleb531/play-song
bbdafa44a8e4e49cb8a44e4b55cb1cec3d7612c7
macosx/scripts/iTunes/mobile-speakers.applescript
macosx/scripts/iTunes/mobile-speakers.applescript
(* Script object to make calling a defined function easier while in the iTunes and System Events name space. *) script remoteSpeakerFinder -- Given a list of buttons, find the remote speakers button -- by finding the first button with a name that isn't in a -- rejection list. on findCorrectButton (in_butto...
(* Script object to make calling a defined function easier while in the iTunes and System Events name space. *) script remoteSpeakerFinder global the_bwindow, the_state -- Given a list of buttons, find the remote speakers button -- by finding the first button with a name that isn't in a -- rejection list. o...
Add a way to select which speakers to set
Add a way to select which speakers to set
AppleScript
bsd-3-clause
pjones/emacsrc
68aa4a3a8855980a01290679cc36cbc1e0a5bf10
run.scpt
run.scpt
JsOsaDAS1.001.00bplist00Vscript_var app = Application("Unity"); app.activate(); delay(0.15); sys = Application("System Events"); sys.keystroke("p", { using: "command down"}); jscr ޭ
var app = Application("Unity"); app.activate(); delay(0.15); sys = Application("System Events"); sys.keystroke("p", { using: "command down"});
convert textfile
convert textfile
AppleScript
mit
katapad/unity-runner
00bc0213301804471b0b5c8cdcf18f2bd7bc6f39
CopyFinderButton.app/Contents/Resources/Scripts/main.scpt
CopyFinderButton.app/Contents/Resources/Scripts/main.scpt
JsOsaDAS1.001.00bplist00Vscripto4// The MIT License (MIT) // Copyright 2017 Lex Tang, http://lexrus.com // // https://github.com/lexrus/LTFinderButtons // // Permission ...
JsOsaDAS1.001.00bplist00VscriptoO// The MIT License (MIT) // Copyright 2017 Lex Tang, http://lexrus.com // // https://github.com/lexrus/LTFinderButtons // // Permission ...
support file name utf8 encoded
support file name utf8 encoded
AppleScript
mit
lexrus/LTFinderButtons
852e7598d93a6ddc7702fcb30b71af7728869ed9
resources/config.applescript
resources/config.applescript
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 15 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- property homeFolder : (path to home folder as text) property libr...
-- core configuration -- -- configurable options -- -- limit number of songs to improve efficiency property resultLimit : 15 -- whether or not to retrieve/display album artwork for each result property albumArtEnabled : true -- workflow parameters -- -- workflow folders property libraryFolder : (path to library fol...
Reorganize and clean up workflow parameters
Reorganize and clean up workflow parameters
AppleScript
mit
caleb531/play-song,caleb531/play-song
90849d69bf32eb6cfe7b309270beef51d10054a1
start-iterm-env.scpt
start-iterm-env.scpt
FasdUAS 1.101.10 k l  r  n 1  psxp l I .earsffdralis afdr f o 0 script_path l  r  l  I  .sysoexecTEXT...
FasdUAS 1.101.10 k l  r  n 1  psxp l I .earsffdralis afdr f o 0 script_path l  r  l  I  .sysoexecTEXT...
Change startup script to disgard its own changes on startup
Change startup script to disgard its own changes on startup
AppleScript
apache-2.0
trakio/trak.io.js,trakio/trak.io.js,trakio/trak.io.js
9b1d578b45f6811b43803231985841a8cc865e5e
km.scpt
km.scpt
try get application id "com.stairways.keyboardmaestro.engine" on error err_msg number err_num return "Keyboard Maestro not found. First install it and then use this workflow." end try tell application id "com.stairways.keyboardmaestro.engine" gethotkeys with asstring end tell
try get application id "com.stairways.keyboardmaestro.engine" on error err_msg number err_num return "Keyboard Maestro not found. First install it and then use this workflow." end try tell application id "com.stairways.keyboardmaestro.engine" gethotkeys with asstring and getall end tell
Update script to get ALL macros instead of just hotkeyed macros.
Update script to get ALL macros instead of just hotkeyed macros.
AppleScript
mit
iansinnott/alfred-maestro,iansinnott/alfred-maestro
4181fd73b1a998202f6ce356a44b979ef7102f35
source/Reminders/RemindersNewItem.applescript
source/Reminders/RemindersNewItem.applescript
tell application "Reminders" activate set theAccount to name of first account tell account theAccount set theList to name of first list set myReminder to (make new reminder at list theList with properties {name:"{popclip text}"}) end tell end tell
on sortList(unsortedList) set oldDelimiters to AppleScript's text item delimiters set AppleScript's text item delimiters to (ASCII character 10) set sortedList to paragraphs of (do shell script "echo " & quoted form of (unsortedList as string) & "| sort -d -f") set AppleScript's text item delimiters to oldDelimite...
update Reminders to choose first list in alphabetical order
update Reminders to choose first list in alphabetical order
AppleScript
mit
dreki/PopClip-Extensions,dreki/PopClip-Extensions,onecrayon/PopClip-Extensions,dreki/PopClip-Extensions,chenruixuan/PopClip-Extensions,dreki/PopClip-Extensions,chenruixuan/PopClip-Extensions,onecrayon/PopClip-Extensions,onecrayon/PopClip-Extensions,Kapeli/PopClip-Extensions,chenruixuan/PopClip-Extensions,chenruixuan/Po...
a0ba90e349cb5bf9d38a68ae5ddd4ae4c0652cc6
web-app/webstart/toolkits/terminal.scpt
web-app/webstart/toolkits/terminal.scpt
on run argv tell app "Terminal" activate set custom title to "CodeCanaan" set tab1 to do script item 1 of argv end tell end run
on run argv tell app "Terminal" activate set tab1 to do script item 1 of argv tell tab1 to set custom title to "CodeCanaan" end tell end run
設定 Mac Terminal Title
設定 Mac Terminal Title
AppleScript
mit
codecanaan/codecanaan,codecanaan/codecanaan,codecanaan/codecanaan,codecanaan/codecanaan,codecanaan/codecanaan,codecanaan/codecanaan,codecanaan/codecanaan
672818246de129e65ca44632fcf4e26dd90e2b04
keynote.applescript
keynote.applescript
on newPresentation(themeName) tell application "Keynote" activate -- set the chosenTheme to themeName set targetWidth to 1024 -- 1440 <-- higher resolution set targetHeight to 768 -- 1080 <-- higher resolution set thisDocument to ¬ make new document with properties ¬ ...
on newPresentation(themeName) tell application "Keynote" activate -- set the chosenTheme to themeName set targetWidth to 1024 -- 1440 <-- higher resolution set targetHeight to 768 -- 1080 <-- higher resolution set thisDocument to ¬ make new document with properties ¬ ...
Add an image to a slide (with an image placeholder)
Add an image to a slide (with an image placeholder)
AppleScript
mit
persquare/md2keynote
980d32d60185b8cc2dd30108e582afe17da7d1bd
connector-osx-kn.scpt
connector-osx-kn.scpt
-- -- slideshow -- Observe and Control Slideshow Applications -- Copyright (c) 2014 Ralf S. Engelschall <http://engelschall.com> -- -- This Source Code Form is subject to the terms of the Mozilla Public -- License (MPL), version 2.0. If a copy of the MPL was not distributed -- with this file, You can obtain one at...
-- -- slideshow -- Observe and Control Slideshow Applications -- Copyright (c) 2014 Ralf S. Engelschall <http://engelschall.com> -- -- This Source Code Form is subject to the terms of the Mozilla Public -- License (MPL), version 2.0. If a copy of the MPL was not distributed -- with this file, You can obtain one at...
fix protocol
fix protocol
AppleScript
mpl-2.0
rse/slideshow,rse/slideshow
b9a768cd410115878d9321b838e81588fe587604
yes.applescript
yes.applescript
on run args if count of args is greater than 0 set applescript's text item delimiters to " " set pn to (args as string) repeat log pn end else repeat log "y" end end end
#!/usr/bin/osascript on run args if count of args is greater than 0 set applescript's text item delimiters to " " set pn to (args as string) repeat log pn end else repeat log "y" end end end
Add Shebang to Applescript
Add Shebang to Applescript
AppleScript
mit
mubaris/yes,mubaris/yes,mubaris/yes,mubaris/yes,mubaris/yes,mubaris/yes,mubaris/yes,mubaris/yes,mubaris/yes,mubaris/yes,mubaris/yes,mubaris/yes,mubaris/yes,mubaris/yes,mubaris/yes,mubaris/yes,mubaris/yes,mubaris/yes
d46b326a29da7d081e2bbd389bd8627927328f1c
Extras/GrowlTunes/Scripts/jackItunesArtwork.scpt
Extras/GrowlTunes/Scripts/jackItunesArtwork.scpt
FasdUAS 1.101.10 k lH QH O= k<   r  m  fsck o 0 returnvalue returnValue r  n  1  pnam 1   pPla o 0alibrary...
FasdUAS 1.101.10 k lH QH O= k<   r  mfsck o 0 returnvalue returnValue r  n  1  pnam 1   pPla o 0alib...
Fix #114: GrowlTunes hanging if pictd has died.
Fix #114: GrowlTunes hanging if pictd has died. As noted in the ticket, the fix here is to ask for the raw data, not the PICT data, for the artwork.
AppleScript
bsd-3-clause
doshinirav/doshinirav-myversion,doshinirav/doshinirav-myversion,CarlosCD/growl,Shalaco/shalzers-growl,doshinirav/doshinirav-myversion,Shalaco/shalzers-growl,Shalaco/shalzers-growl,Shalaco/shalzers-growl,Shalaco/shalzers-growl,Shalaco/shalzers-growl,Shalaco/shalzers-growl,Shalaco/shalzers-growl,coltonfisher/coltonfisher...
42da0f6e0519ede64d926ae9b809384c45e1f1b5
QuickStats/QuickStats.applescript
QuickStats/QuickStats.applescript
property pTitle : "OmniFocus: Quick Stats" property pVersion : "2.07.brett" property pstrDBPath : "$HOME/Library/Containers/com.omnigroup.OmniFocus2/Data/Library/Caches/com.omnigroup.OmniFocus/OmniFocusDatabase2" property pstrMinOSX : "10.9" property pTimeOut : 20 -- Original version: https://github.com/RobTrew/tree...
property pTitle : "OmniFocus: Quick Stats" property pVersion : "2.07.brett" property pstrDBPath : "$HOME/Library/Containers/com.omnigroup.OmniFocus2/Data/Library/Caches/com.omnigroup.OmniFocus/OmniFocusDatabase2" property pstrMinOSX : "10.9" property pTimeOut : 30 -- Original version: https://github.com/RobTrew/tree...
increase the timeout
increase the timeout
AppleScript
apache-2.0
brettporter/omnifocus-tools
8914ac0a3ccf4e16e125c534c7164e4f9ffa43fc
dated_deleter.scpt
dated_deleter.scpt
-- stolen from: https://discussions.apple.com/thread/3172966 property keyPhrase : "Trashed on: " property securityLevel : 2 -- overwrites: 1=1-pass, 2=7-pass, 3=35-pass, see man srm property daysToWait : 7 tell application "Finder" -- get files in trash that are not new, and check dates set oldFiles to (...
-- stolen from: https://discussions.apple.com/thread/3172966 property keyPhrase : "Trashed on: " property securityLevel : 2 -- overwrites: 1=1-pass, 2=7-pass, 3=35-pass, see man srm property daysToWait : 7 tell application "Finder" -- get files in trash that are not new, and check dates set oldFiles to (...
allow for weird dates
allow for weird dates
AppleScript
mit
Mausy5043/OSX-EmptyTrash
f8d117554804d97d9ecbac80288966974ae9f9b1
script/start_install.scpt
script/start_install.scpt
#!/usr/bin/env osascript -- Fist: Click Install Button delay 0.4 tell application "System Events" set installer to "Install Command Line Developer Tools" click UI Element "Install" of window 1 of installer click UI Element "Agree" of window 1 of installer end tell
#!/usr/bin/env osascript -- Fist: Click Install Button delay 0.4 tell application "System Events" set installer to application process "Install Command Line Developer Tools" click UI Element "Install" of window 1 of installer click UI Element "Agree" of window 1 of installer end tell
Fix fatal mistake
Fix fatal mistake
AppleScript
mit
k0kubun/rebuild,k0kubun/rebuild
49b3bc5a5848ffd009123afd5d7b235f11bc3018
status.applescript
status.applescript
tell application "Finder" set json_path to file "json.scpt" of folder of (path to me) end tell set json to load script (json_path as alias) on is_running(appName) tell application "System Events" to (name of processes) contains appName end is_running set reply to json's createDict() if is_running("Hermes") then re...
tell application "Finder" set json_path to file "json.scpt" of folder of (path to me) end tell set json to load script (json_path as alias) on is_running(appName) tell application "System Events" to (name of processes) contains appName end is_running set reply to json's createDict() if is_running("Hermes") then re...
add volume and stations framework for when i fix it
add volume and stations framework for when i fix it
AppleScript
mit
winny-/HermesRemote,winny-/HermesRemote
d97b50320a0634e02f139c1218508ffd07b17894
applescripts/open_vagrant.applescript
applescripts/open_vagrant.applescript
set open_vagrant to "z puppet; vagrant up;" tell application "iTerm" activate try set mysession to current session of current terminal on error set myterm to (make new terminal) tell myterm launch session "Default" set mysession to current session end tell end try tell mysession write text open_...
set open_vagrant to "z puppet; vagrant up;" set update_master to "/Users/alex/.homesick/repos/palcu/dotfiles/scripts/update_master.sh;" tell application "iTerm" activate try set mysession to current session of current terminal on error set myterm to (make new terminal) tell myterm launch session "Default" ...
Add update script to open vagrant applescript
Add update script to open vagrant applescript
AppleScript
mit
smathson/dotfiles
29a1d2caf39696e1074d80add85903fbef9aa63a
lib/scripts/get_track.applescript
lib/scripts/get_track.applescript
on escape_quotes(string_to_escape) set AppleScript's text item delimiters to the "\"" set the item_list to every text item of string_to_escape set AppleScript's text item delimiters to the "\\\"" set string_to_escape to the item_list as string set AppleScript's text item delimiters to "" return string_to_es...
on escape_quotes(string_to_escape) set AppleScript's text item delimiters to the "\"" set the item_list to every text item of string_to_escape set AppleScript's text item delimiters to the "\\\"" set string_to_escape to the item_list as string set AppleScript's text item delimiters to "" return string_to_escape e...
add album artwork url to get_track
add album artwork url to get_track
AppleScript
mit
andrehaveman/spotify-node-applescript
b9c9aeda0352a18ff8db1d4f9cfd5a32004f1198
packages/react-dev-utils/openChrome.applescript
packages/react-dev-utils/openChrome.applescript
(* Copyright (c) 2015-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. *) on run argv set theURL t...
(* Copyright (c) 2015-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. *) on run argv set theURL t...
Fix chrome tab reuse (#1035)
Fix chrome tab reuse (#1035) * Correctly checks site url to tab url in reuse check * Bring chrome to foreground focused after tab reuse
AppleScript
bsd-3-clause
DivineGod/create-react-app,Bogala/create-react-app-awesome-ts,Timer/create-react-app,just-boris/create-preact-app,TondaHack/create-react-app,reedsa/create-react-app,Psychwire/create-react-app,shrynx/react-super-scripts,xiaohu-developer/create-react-app,digitalorigin/create-react-app,jayphelps/create-react-app,IamJoseph...
7d3ecb535f3f0cc64047d63fef34b80aed30cda7
macosx/scripts/iTunes/mobile-speakers.applescript
macosx/scripts/iTunes/mobile-speakers.applescript
(* Script object to make calling a defined function easier while in the iTunes and System Events name space. *) script remoteSpeakerFinder global the_bwindow, the_state -- Given a list of buttons, find the remote speakers button -- by finding the first button with a name that isn't in a -- rejection list. o...
(* Script object to make calling a defined function easier while in the iTunes and System Events name space. *) script remoteSpeakerFinder global the_bwindow, the_state -- Find the remote speakers button on findCorrectButton() tell application "System Events" tell process "iTunes" set in_buttons to (g...
Update for iTunes 10
Update for iTunes 10
AppleScript
bsd-3-clause
pjones/emacsrc
f6180b96943b077d88e7eb218831e7a37a8a7790
bin/PrintSafari.scpt
bin/PrintSafari.scpt
FasdUAS 1.101.10 k l> O> k=   I .miscactvnullnull   O * k) l I .prcskprsnullctxt mp  faal J ...
FasdUAS 1.101.10 k i I .aevtoappnull**** o 0argv k   l   printer ?????? printer 0o_ep0gn!0Y  l  1. last use printer( ...
Add printer select feature
Add printer select feature
AppleScript
mit
sumipan/safari-print.rb
cf9d22b99459c0e19fab3510845486d509cd19ef
itunes-concatenator/itunes-concatenator/DASAppDelegate.applescript
itunes-concatenator/itunes-concatenator/DASAppDelegate.applescript
-- -- DASAppDelegate.applescript -- itunes-concatenator -- -- Created by David Schlachter on 2014-08-26. -- Copyright (c) 2014 Red Eft Software. All rights reserved. -- -- via http://macscripter.net/viewtopic.php?pid=173787 ; apparently needed for using arrays script DASAppDelegate property parent : class "NSObj...
-- -- DASAppDelegate.applescript -- itunes-concatenator -- -- Created by David Schlachter on 2014-08-26. -- Copyright (c) 2014 Red Eft Software. All rights reserved. -- -- via http://macscripter.net/viewtopic.php?pid=173787 ; apparently needed for using arrays script DASAppDelegate property parent : class "NSObj...
Add track to iTunes
Add track to iTunes
AppleScript
bsd-2-clause
davidschlachter/itunes-concatenator,davidschlachter/itunes-concatenator
a49fa74918e96daff665a11b12a8b55fac3f2da5
tools/slauncher/slauncher_helper.app/Contents/Resources/Scripts/main.scpt
tools/slauncher/slauncher_helper.app/Contents/Resources/Scripts/main.scpt
FasdUAS 1.101.10 k i I 0 getparentpath GetParentPath  o 0thefiletheFile O L n m  ctnr o 0thefiletheFile m...
FasdUAS 1.101.10 k i I 0 getparentpath GetParentPath  o 0thefiletheFile O L n m  ctnr o 0thefiletheFile m...
Make slauncher_helper.app able to exit before the process it launches finishes.
Make slauncher_helper.app able to exit before the process it launches finishes. slauncher_helper.app was relying on the 'do shell script' functionality to detect errors when launching slauncher. Instead, just find the slauncher binary manually and assume we can get it to run. Run the binary in the background so we don...
AppleScript
bsd-3-clause
sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata
bef957feea5aa401f934bcc82e8227c010fc2e77
Uninstall.applescript
Uninstall.applescript
property stdout : "" on run set newline to ASCII character 10 set stdout to stdout & " shutdown TotalFinderCrashWatcher ..." & newline try do shell script "killall -SIGINT TotalFinderCrashWatcher" with administrator privileges on error set stdout to stdout & " TotalFinderCrashWatcher was not running" & ne...
property stdout : "" on run set newline to ASCII character 10 set stdout to stdout & " shutdown TotalFinderCrashWatcher ..." & newline try do shell script "killall -SIGINT TotalFinderCrashWatcher" with administrator privileges on error set stdout to stdout & " TotalFinderCrashWatcher was not running" & ne...
extend uninstaller to also remove named login item "TotalFinder"
extend uninstaller to also remove named login item "TotalFinder"
AppleScript
bsd-3-clause
binaryage/totalfinder-installer
184cb20881e080aafdac3076ef65c8a86ec49675
extra/Configs/Config.arc
extra/Configs/Config.arc
# # For a description of the syntax of this configuration file, # see extra/config/Kconfig-language.txt # config TARGET_ARCH default "arc" config FORCE_OPTIONS_FOR_ARCH bool default y select ARCH_ANY_ENDIAN choice prompt "Target Processor Type" default CONFIG_ARC_CPU_700 config CONFIG_ARC_CPU_700 bool "ARC700...
# # For a description of the syntax of this configuration file, # see extra/config/Kconfig-language.txt # config TARGET_ARCH default "arc" config FORCE_OPTIONS_FOR_ARCH bool default y select ARCH_ANY_ENDIAN choice prompt "Target Processor Type" default CONFIG_ARC_CPU_700 config CONFIG_ARC_CPU_700 bool "ARC700...
remove duplicate entries
remove duplicate entries
Arc
lgpl-2.1
brgl/uclibc-ng,foss-for-synopsys-dwc-arc-processors/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,brgl/uclibc-ng,kraj/uclibc-ng,wbx-github/uclibc-ng,kraj/uclibc-ng,kraj/uclibc-ng,wbx-github/uclibc-ng,wbx-github/uclibc-ng,brgl/uclibc-ng,kraj/uclibc-ng,brgl/uclibc-ng,wbx-g...
73af863f9de17a8f4c0dd689be7dee6de19f4784
lib/crypto.arc
lib/crypto.arc
($ (require file/md5)) (load "lib/lang.arc") (def md5 (str) (($ bytes->string/utf-8) (($ md5) (($ string->bytes/utf-8) str)))) (def sha224 (data) (perl subprocess “ use Digest::SHA qw(sha224_hex); sha224_hex(«data»); ”))
($ (require file/md5)) (load "lib/lang.arc") (def md5 (str) (($ bytes->string/utf-8) (($ md5) (($ string->bytes/utf-8) str)))) (def sha224 (data) (perl subprocess “ use Digest::SHA qw(sha224_hex); sha224_hex(«data»); ”)) (def whirlpool (data) (perl subprocess “ use Digest; my $whirlpool = ...
add whirlpool to lib/crypto.arc
add whirlpool to lib/crypto.arc
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
fd896df94341f25bf92b53e9f71976070ee3c796
lib/tests/core-lists-test.arc
lib/tests/core-lists-test.arc
(suite lists (suite cons create (assert-same '(a b c) (cons 'a '(b c))) cons-strings (assert-same '("a" . "b") (cons "a" "b"))) (suite car car-of-nil-is-nil (assert-nil (car nil)) ...
(suite lists (suite cons create (assert-same '(a b c) (cons 'a '(b c))) cons-strings (assert-same '("a" . "b") (cons "a" "b"))) (suite car car-of-nil-is-nil (assert-nil (car nil)) ...
remove test that doesn't make sense anymore
remove test that doesn't make sense anymore
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
e0375b7a827c26c9cc9041160084d7f149efadc7
libs.arc
libs.arc
(map load '("strings.arc" "code.arc" "html.arc" "srv.arc" "app.arc" "http.arc" "prompt.arc")) ; We define 'require here, rather than in a file in load/ so that things in ; load/ can use it for load-ordering. (unless (and (bound 'required-files*) r...
(map load '("strings.arc" "code.arc" "html.arc" "srv.arc" "app.arc" "prompt.arc")) ; We define 'require here, rather than in a file in load/ so that things in ; load/ can use it for load-ordering. (unless (and (bound 'required-files*) required-files*) (= re...
stop loading http.arc as well
stop loading http.arc as well http/dispatch.arc are the srv/app.arc alternative.
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
4a504df39b2315a93947ada219428dbf0ddcf7e6
se.arc
se.arc
// hope this is a comment (def a () (xjs "brave"))
// hope this is a comment // but it probably isn't (def a () (xjs "brave"))
comment doom
comment doom
Arc
mit
rever0f/surfaceEnigma,rever0f/surfaceEnigma
b326ce1b6c4785740f0d672db6ab34fef4e4da1d
lib/crypto.arc
lib/crypto.arc
($ (require file/md5)) (load "lib/lang.arc") (def md5 (str) (($ bytes->string/utf-8) (($ md5) (($ string->bytes/utf-8) str)))) (def sha224 (data) (perl subprocess “ use Digest::SHA qw(sha224_hex); sha224_hex(«data»); ”)) (def sha384 (data) (perl subprocess “ use Digest::SHA qw(sha384_hex); sha384_hex(«dat...
($ (require file/md5)) (load "lib/lang.arc") (def md5 (str) (($ bytes->string/utf-8) (($ md5) (($ string->bytes/utf-8) str)))) (def sha1 (data) (perl subprocess “ use Digest::SHA qw(sha1_hex); sha1_hex(«data»); ”)) (def sha224 (data) (perl subprocess “ use Digest::SHA qw(sha224_hex); sha224_hex(«data»); ...
add sha1 and sha256 to lib/crypto.arc
add sha1 and sha256 to lib/crypto.arc
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
2d7f3a55d53ed98886f4fb288755c647b5b7857e
demos/texture-panels.arc
demos/texture-panels.arc
root() { picture(Vec2(256, 256)); texture(Vec2(256, 256)); tstore(0); tnoise(5, 6, 5, 3); tblur(0.01, 0.01, 0.7, 0); tstore(1); tload(0); repeat(rectRow, 0); trotozoom(0.03, 2); tderive(1, 0.8); tmul(2); tstore(2); tbump(1, 2, Vec3(0, 0, 0), // p Vec3(-2, 0.8, -3.6), // d Vec...
root() { picture(Vec2(256, 256)); texture(Vec2(256, 256)); tstore(0); flatPanels(); tstore(2); tnoise(2, 2, 6, 0.8); tstore(1); tbump(1, 2, Vec3(0, 0, 0), // p Vec3(-2, 0.8, -3.7), // d Vec3(0.1, 0.1, 0.1), // ambient Vec3(1, 1, 1)); // diffuse tmix(3, 0.06); //tload(2)...
Improve 'texture-panels' demo
Improve 'texture-panels' demo
Arc
agpl-3.0
Ace17/architect,Ace17/architect
17ea4f9622a80cc8717beeefe1371ccbcd501fe3
extra/Configs/Config.arc
extra/Configs/Config.arc
# # For a description of the syntax of this configuration file, # see extra/config/Kconfig-language.txt # config TARGET_ARCH default "arc" config FORCE_OPTIONS_FOR_ARCH bool default y select ARCH_ANY_ENDIAN choice prompt "Target Processor Type" default CONFIG_ARC_CPU_700 config CONFIG_ARC_CPU_700 bool "ARC700...
# # For a description of the syntax of this configuration file, # see extra/config/Kconfig-language.txt # config TARGET_ARCH default "arc" config FORCE_OPTIONS_FOR_ARCH bool default y select ARCH_ANY_ENDIAN choice prompt "Target Processor Type" default CONFIG_ARC_CPU_700 config CONFIG_ARC_CPU_700 bool "ARC700...
introduce explicit support for atomics
ARC: introduce explicit support for atomics Signed-off-by: Vineet Gupta <af669d95a4c0de051445d4cafdbb2c5c4a2838be@synopsys.com>
Arc
lgpl-2.1
kraj/uclibc-ng,wbx-github/uclibc-ng,kraj/uclibc-ng,foss-for-synopsys-dwc-arc-processors/uClibc,kraj/uclibc-ng,brgl/uclibc-ng,wbx-github/uclibc-ng,wbx-github/uclibc-ng,foss-for-synopsys-dwc-arc-processors/uClibc,brgl/uclibc-ng,foss-for-synopsys-dwc-arc-processors/uClibc,wbx-github/uclibc-ng,foss-for-synopsys-dwc-arc-pro...
d994b834c69d6cf9aaa65b6ec337ae63ce8f8582
lib/util.arc
lib/util.arc
; lib/util.arc: A collection of useful miscellanea ; Contributors: ; - Michael Arntzenius <daekharel@gmail.com> ; Persons we've shamelessly ripped off: ; - Conan Dalton <conan@conandalton.net> ; - absz (http://arclanguage.org/user?id=absz) ; License: Do what you want, but it's not my fault! ; This license applies to...
; lib/util.arc: A collection of useful miscellanea ; Contributors: ; - Michael Arntzenius <daekharel@gmail.com> ; Persons we've shamelessly ripped off: ; - Conan Dalton <conan@conandalton.net> ; - absz (http://arclanguage.org/user?id=absz) ; License: Do what you want, but it's not my fault! ; This license applies to...
improve docstrings, add docs for 'w/std{in,out}file
lib/util.arc: improve docstrings, add docs for 'w/std{in,out}file
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
f01589b6c2a53ef654fe1ca09c4831f8aac09bc8
code.arc
code.arc
; Code analysis. Spun off 21 Dec 07. ; Ought to do more of this in Arc. One of the biggest advantages ; of Lisp is messing with code. (def codelines (file) (w/infile in file (summing test (whilet line (readline in) (test (aand (find nonwhite line) (isnt it #\;))))))) (def codeflat (file) (len ...
; Code analysis. Spun off 21 Dec 07. ; Ought to do more of this in Arc. One of the biggest advantages ; of Lisp is messing with code. (def codelines (file) (w/infile in file (summing test (whilet line (readline in) (test (aand (find nonwhite line) (isnt it #\;))))))) (def codeflat (file) (len ...
Use counts in tokcount
Use counts in tokcount
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
0291cef0111a165d513855551769f528e20b8632
old-tests.arc
old-tests.arc
;; unit tests in various styles prior to https://bitbucket.org/zck/unit-test.arc (map load:string '( arc.arc.t lib/app.arc.t lib/json.arc.t lib/lru-cache.arc.t lib/ns.arc.t lib/queue.arc.t lib/spliceable-list.arc.t lib/srv.arc.t lib/strings.arc.t lib/tem.arc.t lib/web.arc.t )...
;; unit tests in various styles prior to https://bitbucket.org/zck/unit-test.arc (map load:string '( arc.arc.t lib/app.arc.t lib/json.arc.t lib/lru-cache.arc.t lib/ns.arc.t lib/queue.arc.t lib/spliceable-list.arc.t lib/srv.arc.t lib/strings.arc.t lib/tem.arc.t lib/web.arc.t ...
add rainbow tests to old-tests.arc
add rainbow tests to old-tests.arc
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
ea3bd19c452ef81b89aff62e207a83eb115c041c
lib/re.arc
lib/re.arc
(def re-split (delim str) (($ regexp-split) delim str)) (def re-replace (pat text replacement) (($ regexp-replace*) (($ pregexp) pat) text replacement)) (def matchsplit (pat str) (let pos (posmatch pat str) (if pos (list (cut str 0 pos) (cut str (+ 1 pos))) (list str))))
; re started by Mark Huetsch ; some of this code is lifted (with slight modifications) from Andrew Wilson's site (http://awwx.ws/re2.arc) (def re-match-pat (pat str) (ac-niltree ($.regexp-match ($.pregexp pat) str))) (def re-match (pat str) (only.cdr (re-match-pat pat str))) (def re-split (delim str) ($.regexp...
add some regex fns from aw's site
add some regex fns from aw's site
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
5e79d716dce16218ddcf12ea92f6bb408111baff
lib/coro.arc
lib/coro.arc
(require "lib/util.arc") ; simpler than point and robust against changes in it, given that 'point ; indicates that the form it produces must only be used as an escape procedure. (mac lcc (var . body) " Binds the current contination to `var' within `body'. See also [[point]] " `(ccc (fn (,var) ,@body))) (def y...
(require "lib/util.arc") (require "lib/extend.arc") ; simpler than point and robust against changes in it, given that 'point ; indicates that the form it produces must only be used as an escape procedure. (mac lcc (var . body) " Binds the current contination to `var' within `body'. See also [[point]] " `(ccc (...
add generators
lib/coro.arc: add generators
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
f4c02853665c671ba399f18b1bf0a12f85ee360e
lib/web.arc
lib/web.arc
; written by Mark Huetsch ; same license as Arc ($ (require openssl)) ($ (xdef ssl-connect (lambda (host port) (ar-init-socket (lambda () (ssl-connect host port)))))) (load "lib/re.arc") (load "lib/util.arc") (def parse-server-cookies (s) (map [map trim _] (map [m...
; written by Mark Huetsch ; same license as Arc ($ (require openssl)) ($ (xdef ssl-connect (lambda (host port) (ar-init-socket (lambda () (ssl-connect host port)))))) (load "lib/re.arc") (load "lib/util.arc") (def parse-server-cookies (s) (map [map trim _] (map [m...
add basic google function
add basic google function
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
f00a927bfcd908c11d8035e94e8cd5a05ad9e803
strings.arc
strings.arc
; Matching. Spun off 29 Jul 06. ; arc> (tostring (writec (coerce 133 'char))) ; ;> (define ss (open-output-string)) ;> (write-char (integer->char 133) ss) ;> (get-output-string ss) ;"\u0085" (def tokens (s (o sep whitec)) (let test (testify sep) (let rec (afn (cs toks tok) (if (no cs) (c...
; Matching. Spun off 29 Jul 06. ; arc> (tostring (writec (coerce 133 'char))) ; ;> (define ss (open-output-string)) ;> (write-char (integer->char 133) ss) ;> (get-output-string ss) ;"\u0085" (def tokens (s (o sep whitec)) (let test (testify sep) (let rec (afn (cs toks tok) (if (no cs) (c...
add regex functions to strings.arc
add regex functions to strings.arc
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
e7a95ac658e14262b691df1503827adc2302c92f
load/ppr.arc
load/ppr.arc
(= pprsyms* (fill-table (table) '(quote "'" quasiquote "`" unquote "," unquote-splicing ",@"))) (def sp ((o n 1)) " Print a number of spaces. " (repeat n (pr " "))) (def print-spaced (xs) " Print the expressions in the list separated by spaces. " (when xs (print car.xs) (each x cdr...
(= pprsyms* (fill-table (table) '(quote "'" quasiquote "`" unquote "," unquote-splicing ",@"))) (def sp ((o n 1)) " Print a number of spaces. " (repeat n (pr " "))) (def print-spaced (xs) " Print the expressions in the list separated by spaces. " (when xs (print car.xs) (each x cdr...
Remove indent mac from ppr.arc
Remove indent mac from ppr.arc
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
54221fc44160e69b77affa2b9d54143aa6a937c1
strings.arc
strings.arc
; Matching. Spun off 29 Jul 06. ; arc> (tostring (writec (coerce 133 'char))) ; ;> (define ss (open-output-string)) ;> (write-char (integer->char 133) ss) ;> (get-output-string ss) ;"\u0085" (def tokens (s (o sep whitec)) (let test (testify sep) (let rec (afn (cs toks tok) (if (no cs) (c...
; Matching. Spun off 29 Jul 06. ; arc> (tostring (writec (coerce 133 'char))) ; ;> (define ss (open-output-string)) ;> (write-char (integer->char 133) ss) ;> (get-output-string ss) ;"\u0085" (def tokens (s (o sep whitec)) (let test (testify sep) (let rec (afn (cs toks tok) (if (no cs) (c...
add nonascii to strings.arc
add nonascii to strings.arc
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
9b51cfaab0570de79daed83e41a516de084eb6bd
lib/util.arc
lib/util.arc
; lib/util.arc: A collection of useful miscellanea ; Contributors: ; - Michael Arntzenius <daekharel@gmail.com> ; Persons we've shamelessly ripped off: ; - Conan Dalton <conan@conandalton.net> ; - absz (http://arclanguage.org/user?id=absz) ; License: Do what you want, but it's not my fault! ; This license applies to...
; lib/util.arc: A collection of useful miscellanea ; Contributors: ; - Michael Arntzenius <daekharel@gmail.com> ; Persons we've shamelessly ripped off: ; - Conan Dalton <conan@conandalton.net> ; - absz (http://arclanguage.org/user?id=absz) ; License: Do what you want, but it's not my fault! ; This license applies to...
add 'w/std{in,out}file
lib/util.arc: add 'w/std{in,out}file
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
c5cbb28b3a6dbf118d29b730c1eb378da6b09023
strings.arc
strings.arc
; Matching. Spun off 29 Jul 06. ; arc> (tostring (writec (coerce 133 'char))) ; ;> (define ss (open-output-string)) ;> (write-char (integer->char 133) ss) ;> (get-output-string ss) ;"\u0085" (def tokens (s (o sep whitec)) (let test (testify sep) (let rec (afn (cs toks tok) (if (no cs) (c...
; Matching. Spun off 29 Jul 06. ; arc> (tostring (writec (coerce 133 'char))) ; ;> (define ss (open-output-string)) ;> (write-char (integer->char 133) ss) ;> (get-output-string ss) ;"\u0085" (def seq (s) (coerce (if (isa s 'sym) (str s) s) 'cons)) (def tokens (s (o sep whitec)) (let test (testify sep) (let ...
Define and use SEQ
Define and use SEQ
Arc
mit
laarc/laarc,laarc/laarc,laarc/laarc,laarc/laarc
96f7ae2b7df206f2b0905214bb698950eb46aee6
examples/arc/com_cota.arc
examples/arc/com_cota.arc
<drawing xsi:schemaLocation="http://www.archimedes.org.br/xml/FileXMLSchema FileXMLSchema.xsd"><zoom>1.0</zoom><viewport><point x="0.0" y="0.0"/></viewport><container name="Camada" lineStyle="0" thickness="1.0" visible="true" locked="false"><color><unsignedByte>255</unsignedByte><unsignedByte>255</unsignedByte><unsigne...
<?xml version="1.0" encoding="UTF-8"?> <drawing xmlns="http://www.archimedes.org.br/xml/FileXMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.archimedes.org.br/xml/FileXMLSchema FileXMLSchema.xsd"> <zoom>3.3989032337175105</zoom> <viewport> <point x="-221.5503599867832"...
Update com_cota.arc
Update com_cota.arc
Arc
agpl-3.0
ArchimedesCAD/LibreDWGConverter,ArchimedesCAD/LibreDWGConverter
aa7537b711df7e48b11233f92da5b6f76d49c00f
arch/arc/conf/Makefile.arc
arch/arc/conf/Makefile.arc
# $OpenBSD: Makefile.arc,v 1.7 1997/04/19 17:19:49 pefo Exp $ # @(#)Makefile.arc 8.2 (Berkeley) 2/16/94 # # Makefile for 4.4 BSD # # This makefile is constructed from a machine description: # config ``machineid'' # Most changes should be made in the machine description # /sys/arch/arc/conf/``machineid'' # after which ...
# $OpenBSD: Makefile.arc,v 1.8 1997/05/21 10:06:49 pefo Exp $ # @(#)Makefile.arc 8.2 (Berkeley) 2/16/94 # # Makefile for 4.4 BSD # # This makefile is constructed from a machine description: # config ``machineid'' # Most changes should be made in the machine description # /sys/arch/arc/conf/``machineid'' # after which ...
Remove genassym dependency build, spotted by Dale
Remove genassym dependency build, spotted by Dale
Arc
isc
orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars
b6a20fdb871675d742b51b298c7b5560060ddcb1
lib/math.arc
lib/math.arc
(= pi 3.14159265358979323846) (= e 2.71828182845904523536) ;matrix fns (def init-matrix(dims initval) (zap flat dims) (if cdr.dims (n-of car.dims (init-matrix cdr.dims initval)) (n-of car.dims initval))) (def matrix-rank (mat) (if atom.mat 0 (let rec (afn (M r) (if (atom car.M) r (self...
;matrix fns (def init-matrix(dims initval) (zap flat dims) (if cdr.dims (n-of car.dims (init-matrix cdr.dims initval)) (n-of car.dims initval))) (def matrix-rank (mat) (if atom.mat 0 (let rec (afn (M r) (if (atom car.M) r (self car.M (+ r 1)))) (rec mat 1)))) (def zeros dims (init-ma...
Revert to "added adaptive-integral"
Revert to "added adaptive-integral" This reverts commit f6f8704df1cc7e8be98dddff1f09810e4ceed507.
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
87963ce508648f95e515aca10300ffb9184b11c4
html.arc
html.arc
; HTML Utils. (def color (r g b) (with (c (table) f (fn (x) (if (< x 0) 0 (> x 255) 255 x))) (= (c 'r) (f r) (c 'g) (f g) (c 'b) (f b)) c)) (def dehex (str) (errsafe (coerce str 'int 16))) (defmemo hex>color (str) (and (is (len str) 6) (with (r (dehex (cut str 0 2)) g (de...
; HTML Utils. (def color (r g b) (with (c (table) f (fn (x) (if (< x 0) 0 (> x 255) 255 x))) (= (c 'r) (f r) (c 'g) (f g) (c 'b) (f b)) c)) (def dehex (str) (errsafe (coerce str 'int 16))) (defmemo hex>color (str) (and (is (len str) 6) (with (r (dehex (cut str 0 2)) g (de...
Define UNESCHTML and UNESC-TAGS
Define UNESCHTML and UNESC-TAGS
Arc
mit
laarc/laarc,laarc/laarc,laarc/laarc,laarc/laarc
35a7b08ab287efc7943c6208a621fe264e8a7da0
libs.arc
libs.arc
(map load '("lib/require.arc" "lib/extend.arc" "lib/strings.arc" "lib/tem.arc" "lib/util.arc" "lib/declare.arc" "lib/make-br-fn.arc" ; webserver stuff "lib/html.arc" "lib/srv.arc" "lib/app.arc" ...
(map load '("lib/require.arc" "lib/extend.arc" "lib/strings.arc" "lib/tem.arc" "lib/util.arc" "lib/declare.arc" "lib/make-br-fn.arc" ; webserver stuff "lib/html.arc" "lib/srv.arc" "lib/app.arc" ...
load news.arc by default; I'm missing bugs there
load news.arc by default; I'm missing bugs there
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
ca73cc6600ea58883dfa72fe70ede72af0a1094c
IntegrationAccess.sonargraph/Architecture/Architecture.arc
IntegrationAccess.sonargraph/Architecture/Architecture.arc
artifact Architecture { include "**/architecture/**" relaxed artifact Controller { include "**/controller/**" } artifact Persistence { include "**/persistence/**" } artifact Model { include "**/model/**" } deprecated artifact LeftOv...
artifact Architecture { include "**/architecture/**" relaxed artifact Controller { include "**/controller/**" } artifact Persistence { include "**/persistence/**" } artifact Model { include "**/model/**" } deprecated artifact LeftOv...
Update architecture definition.
Update architecture definition.
Arc
apache-2.0
sonargraph/sonargraph-integration-access
4bace4ea585aec8995354fdd6b8afb7108c4aece
lib/streams.arc
lib/streams.arc
;;;; For information on streams see chapter 3.5 of SICP ;;;; May want to use defextend to modify langauge ;;;; so that streams are accessed in the same way lists are ;;;; car/cdr would work on streams and then extend other operations ;;;; such as map, rem, keep, and find ;;;; would also need to tag all of the streams ...
;;;; For information on streams see chapter 3.5 of SICP ;;;; May want to use defextend to modify langauge ;;;; so that streams are accessed in the same way lists are ;;;; car/cdr would work on streams and then extend other operations ;;;; such as map, rem, keep, and find ;;;; would also need to tag all of the streams ...
Update streams.arc
Update streams.arc
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
da26fedf741819fbae76b53b69b597b7f47a5605
arch/arc/conf/Makefile.arc
arch/arc/conf/Makefile.arc
# $OpenBSD: Makefile.arc,v 1.3 1996/08/24 18:35:25 imp Exp $ # @(#)Makefile.arc 8.2 (Berkeley) 2/16/94 # # Makefile for 4.4 BSD # # This makefile is constructed from a machine description: # config machineid # Most changes should be made in the machine description # /sys/arch/MACHINE/conf/``machineid'' # after which y...
# $OpenBSD: Makefile.arc,v 1.4 1996/08/26 10:52:24 pefo Exp $ # @(#)Makefile.arc 8.2 (Berkeley) 2/16/94 # # Makefile for 4.4 BSD # # This makefile is constructed from a machine description: # config machineid # Most changes should be made in the machine description # /sys/arch/MACHINE/conf/``machineid'' # after which ...
Move kernel start from 0x80080000 to 0x80100000
Move kernel start from 0x80080000 to 0x80100000
Arc
isc
orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars
41fa0a3901ea0dafd4586e62e905ac08acb273a4
code.arc
code.arc
; Code analysis. Spun off 21 Dec 07. ; Ought to do more of this in Arc. One of the biggest advantages ; of Lisp is messing with code. (def codelines (file) (w/infile in file (summing test (whilet line (readline in) (test (aand (find nonwhite line) (isnt it #\;))))))) (def codeflat (file) (len ...
; Code analysis. Spun off 21 Dec 07. ; Ought to do more of this in Arc. One of the biggest advantages ; of Lisp is messing with code. (def codelines (file) (w/infile in file (summing test (whilet line (readline in) (test (aand (find nonwhite line) (isnt it #\;))))))) (def codeflat (file) (len ...
Use ret in code.arc
Use ret in code.arc
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
d5daba6eca89e39288c90e7df7fb9a31cb6985f1
glob.arc
glob.arc
(seval '(require file/glob)) (def glob (pat) (each path (seval!glob pat #:capture-dotfiles? #t) (let path (seval!path->string path) (if (dir-exists path) (out (+ path "/")) (out path)))))
(seval '(require file/glob)) (seval '(xdef cwd cwd)) (def glob (pat (o root (cwd))) (each path (seval!glob pat #:capture-dotfiles? #t) (aand (seval!path->string path) (if (dir-exists it) (+ it "/") it) (if (seval!string-prefix? it root) (cut it (len root)) it) ...
Update GLOB to remove the cwd from each result
Update GLOB to remove the cwd from each result
Arc
mit
laarc/laarc,laarc/laarc,laarc/laarc,laarc/laarc
0eb9a7e61dece623d8a03cf1ecb52c7dc08d4ef4
lib/crypto.arc
lib/crypto.arc
($ (require file/md5)) (load "lib/lang.arc") (def md5 (str) (($ bytes->string/utf-8) (($ md5) (($ string->bytes/utf-8) str)))) (def sha224 (data) (perl subprocess “ use Digest::SHA qw(sha224_hex); sha224_hex(«data»); ”)) (def whirlpool (data) (perl subprocess “ use Digest; my $whirlpool = ...
($ (require file/md5)) (load "lib/lang.arc") (def md5 (str) (($ bytes->string/utf-8) (($ md5) (($ string->bytes/utf-8) str)))) (def sha224 (data) (perl subprocess “ use Digest::SHA qw(sha224_hex); sha224_hex(«data»); ”)) (def sha384 (data) (perl subprocess “ use Digest::SHA qw(sha384_hex); sha384_hex(«dat...
add sha384 and sha512 to lib/crypto.arc
add sha384 and sha512 to lib/crypto.arc
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
f98ee92a225cc480d0e5ab20295d0a4e2275b348
prompt.arc
prompt.arc
; Prompt: Web-based programming application. 4 Aug 06. (= appdir* "arc/apps/") (defop prompt req (let user (get-user req) (if (admin user) (prompt-page user) (pr "Sorry.")))) (def prompt-page (user . msg) (ensure-dir appdir*) (ensure-dir (string appdir* user)) (whitepage (prbold "Pr...
; Prompt: Web-based programming application. 4 Aug 06. (= appdir* "arc/apps/") (defop prompt req (let user (get-user req) (if (admin user) (prompt-page user) (pr "Sorry.")))) (def prompt-page (user . msg) (ensure-dir appdir*) (ensure-dir (string appdir* user)) (whitepage (prbold "Pr...
Tweak REPL to remember the last expression entered
Tweak REPL to remember the last expression entered
Arc
mit
laarc/laarc,laarc/laarc,laarc/laarc,laarc/laarc
52801f1b8f4cf6e5b913ed549263e75ed1699a34
html.arc
html.arc
; HTML Utils. (def color (r g b) (with (c (table) f (fn (x) (if (< x 0) 0 (> x 255) 255 x))) (= (c 'r) (f r) (c 'g) (f g) (c 'b) (f b)) c)) (def dehex (str) (errsafe (coerce str 'int 16))) (defmemo hex>color (str) (and (is (len str) 6) (with (r (dehex (cut str 0 2)) g (de...
; HTML Utils. (def color (r g b) (with (c (table) f (fn (x) (if (< x 0) 0 (> x 255) 255 x))) (= (c 'r) (f r) (c 'g) (f g) (c 'b) (f b)) c)) (def dehex (str) (errsafe (coerce str 'int 16))) (defmemo hex>color (str) (and (is (len str) 6) (with (r (dehex (cut str 0 2)) g (de...
Add cellpadding to zerotable
Add cellpadding to zerotable
Arc
mit
laarc/laarc,laarc/laarc,laarc/laarc,laarc/laarc
8cbc09fd6e075c103a8c061494fcd0d22ddc57f8
blog.arc
blog.arc
; Blog tool example. 20 Jan 08, rev 21 May 09. ; To run: ; arc> (load "blog.arc") ; arc> (bsv) ; go to http://localhost:8080/blog (= postdir* "arc/posts/" maxid* 0 posts* (table)) (= blogtitle* "A Blog") (deftem post id nil title nil text nil) (def load-posts () (each id (map int (dir postdir*)) (= max...
; Blog tool example. 20 Jan 08, rev 21 May 09. ; To run: ; arc> (load "blog.arc") ; arc> (bsv) ; go to http://localhost:8080/blog (^ postdir* "arc/posts/" postid* 0 posts* (table)) (= blogtitle* "A Blog") (deftem post id nil title nil text nil) (def load-posts () (each id (map int (dir postdir*)) (= po...
Update blog.arc to not conflict with news.arc
Update blog.arc to not conflict with news.arc
Arc
mit
laarc/laarc,laarc/laarc,laarc/laarc,laarc/laarc
18bc9671bc421bc1914ab2b3fa11c58a5823e15f
lib/ppr.arc
lib/ppr.arc
; confusingly, there's another pretty-printer at pprint.arc ; this one is loaded by default, but not the original Arc 3.1 pretty-printer (= pprsyms* (fill-table (table) '(quote "'" quasiquote "`" unquote "," unquote...
; confusingly, there's another pretty-printer at pprint.arc ; this one is loaded by default, but not the original Arc 3.1 pretty-printer (= pprsyms* (fill-table (table) '(quote "'" quasiquote "`" unquote "," unquote...
clarify some magic constants in the pretty-printer
clarify some magic constants in the pretty-printer
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
c519837e15dbca36d7f792ef1f611807045713b4
lib/run-news.arc
lib/run-news.arc
(thread (nsv 8080)) (sleep 3) ; wait for nsv's initial messages to appear before printing first prompt ($.tl)
(thread (nsv 8081)) (sleep 3) ; wait for nsv's initial messages to appear before printing first prompt ($.tl)
Update run-news.arc
Update run-news.arc port 8080 -> 8081
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
4504f3cbcbee7d0032e5872c93e7dd695c81ff38
prompt.arc
prompt.arc
; Prompt: Web-based programming application. 4 Aug 06. (= appdir* "arc/apps/") (defop prompt req (let user (get-user req) (if (admin user) (prompt-page user) (pr "Sorry.")))) (def prompt-page (user . msg) (ensure-dir appdir*) (ensure-dir (string appdir* user)) (whitepage (prbold "Pr...
; Prompt: Web-based programming application. 4 Aug 06. (= appdir* "arc/apps/") (defop prompt req (let user (get-user req) (if (admin user) (prompt-page user) (pr "Sorry.")))) (def prompt-page (user . msg) (ensure-dir appdir*) (ensure-dir (string appdir* user)) (whitepage (prbold "Pr...
Define REPL-HISTORY-MAX*
Define REPL-HISTORY-MAX*
Arc
mit
laarc/laarc,laarc/laarc,laarc/laarc,laarc/laarc
957501d81bafecab070268418a953adb26c9a87c
load/make-br-fn.arc
load/make-br-fn.arc
(require "load/declare.arc") ; avoid redefinition warning ($ (namespace-undefine-variable! (ac-global-name 'make-br-fn))) (def -mbf-argsym (e) (and (begins string.e "_") (~find e decl!brfn-ignore))) (def -mbf-argsyms (e) (case type.e sym (if ssyntax.e (-mbf-argsyms ssexpand.e) (-mbf-argsym...
(require "load/declare.arc") ; avoid redefinition warning ($ (namespace-undefine-variable! (ac-global-name 'make-br-fn))) (def -mbf-argsym (e) (and (begins string.e "_") (~find e decl!brfn-ignore))) (def -mbf-argsyms (e) (case type.e sym (if ssyntax.e (-mbf-argsyms ssexpand.e) (-mbf-argsym...
Simplify make-br-fn and permit 0-arg br-fns
Simplify make-br-fn and permit 0-arg br-fns
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
97d34bdeb6f04926663a7e82e4e225919ad5e4cb
lib/util.arc
lib/util.arc
; lib/util.arc: A collection of useful miscellanea ; Contributors: ; - Michael Arntzenius <daekharel@gmail.com> ; Persons we've shamelessly ripped off: ; - Conan Dalton <conan@conandalton.net> ; - absz (http://arclanguage.org/user?id=absz) ; License: Do what you want, but it's not my fault! ; This license applies to...
; lib/util.arc: A collection of useful miscellanea ; Contributors: ; - Michael Arntzenius <daekharel@gmail.com> ; Persons we've shamelessly ripped off: ; - Conan Dalton <conan@conandalton.net> ; - absz (http://arclanguage.org/user?id=absz) ; License: Do what you want, but it's not my fault! ; This license applies to...
make 'assert use the pretty-printer
lib/util.arc: make 'assert use the pretty-printer
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
6e81791e511d91f8c8a8e6c45adc25ed99ed5aa0
strings.arc
strings.arc
; Matching. Spun off 29 Jul 06. ; arc> (tostring (writec (coerce 133 'char))) ; ;> (define ss (open-output-string)) ;> (write-char (integer->char 133) ss) ;> (get-output-string ss) ;"\u0085" (def concat (seq (o c "")) (str (intersperse c seq))) (def seq (s) (coerce (if (isa s 'sym) (str s) s) 'cons)) (def toke...
; Matching. Spun off 29 Jul 06. ; arc> (tostring (writec (coerce 133 'char))) ; ;> (define ss (open-output-string)) ;> (write-char (integer->char 133) ss) ;> (get-output-string ss) ;"\u0085" (def concat (seq (o c "")) (str (intersperse c seq))) (def seq (s) (coerce (if (isa s 'sym) (str s) s) 'cons)) (def toke...
Optimize LINES
Optimize LINES
Arc
mit
laarc/laarc,laarc/laarc,laarc/laarc,laarc/laarc
8e9409fb27ffd2874540e81628153d5a3e8e93b4
lib/sml.arc
lib/sml.arc
;; ;; Routines for manipulating sml ;; ;; sml is an S-Expression Meta Language for XML that looks like: ;; ;; (tagname attr "value" attr2 "value2" ;; (tagname2) ;; (tagname3 "data")) ;; ;; Convert S-Expression Meta Language to XML (def sml-pr-xml (tag (o indent 0)) (with (name (sml-tag-name tag) elements (sml-...
;; ;; Routines for manipulating sml ;; ;; sml is an S-Expression Meta Language for XML that looks like: ;; ;; (tagname attr "value" attr2 "value2" ;; (tagname2) ;; (tagname3 "data")) ;; ;; Convert S-Expression Meta Language to XML (def sml-pr-xml (tag (o indent 0)) (with (name (sml-tag-name tag) elements (sml-...
Allow sml expressions to not be strings, like (table cellpadding 0 ...) instead of (table cellpadding "0")
Allow sml expressions to not be strings, like (table cellpadding 0 ...) instead of (table cellpadding "0")
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
9bfc9f7ef3a9b43c49e74b45c09b03995b64506d
lib/math.arc
lib/math.arc
(def zeros dims (= dims (flat dims)) (if (no (cdr dims)) (n-of (car dims) 0) (cdr dims) (n-of (car dims) (zeros (cdr dims)))) ) (def ones dims (= dims (flat dims)) (if (no (cdr dims)) (n-of (car dims) 1) (cdr dims) (n-of (car dims) (ones (cdr dims)))) ) (def square (x) ...
(def init-matrix(dims initval) (zap flat dims) (if cdr.dims (n-of car.dims (init-matrix cdr.dims initval)) (n-of car.dims initval))) (def zeros dims (init-matrix dims 0)) (def ones dims (init-matrix dims 1)) (def square (x) (* x x)) (def floor (n) (trunc n)) (def ceiling (n) (int ($.ceiling n))) ...
refactor zeros and ones
refactor zeros and ones
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
4576b309fe877293803970a5e235fcdf48c2d08a
lib/util.arc
lib/util.arc
; lib/util.arc: A collection of useful miscellanea ; Contributors: ; - Michael Arntzenius <daekharel@gmail.com> ; Persons we've shamelessly ripped off: ; - Conan Dalton <conan@conandalton.net> ; - absz (http://arclanguage.org/user?id=absz) ; - fallintothis (http://arclanguage.org/user?id=fallintothis) ; License: Do ...
; lib/util.arc: A collection of useful miscellanea ; Contributors: ; - Michael Arntzenius <daekharel@gmail.com> ; Persons we've shamelessly ripped off: ; - Conan Dalton <conan@conandalton.net> ; - absz (http://arclanguage.org/user?id=absz) ; - fallintothis (http://arclanguage.org/user?id=fallintothis) ; License: Do ...
allow 'w/rfn to accept a single arg as an atom
allow 'w/rfn to accept a single arg as an atom
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
61c0b4c697364d2946a13b10cfeba880200b74fc
extras/arcfn-docs/generate.arc
extras/arcfn-docs/generate.arc
(system "rm -rf html") (ensure-dir "html") (load "template.arc") (runall) ;; fails with "Expected tests" error ;; (run "foundation-doc.tem") (system "cp foundation-doc.html html/") (system "rm -rf output") (ensure-dir "output") (system "cp docs/* html/* output/")
(declare 'atstrings nil) (system "rm -rf html") (ensure-dir "html") (load "template.arc") (runall) ;; fails with "Expected tests" error ;; (run "foundation-doc.tem") (system "cp foundation-doc.html html/") (system "rm -rf output") (ensure-dir "output") (system "cp docs/* html/* output/")
Disable atstrings when generating arcfn docs.
Disable atstrings when generating arcfn docs. Maybe need to re-enable it when we add docs about atstrings. Currently just disable it to make generate.arc works.
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
825770a85b859cea8086335a7832a1e3328758c4
arch/arc/conf/files.arc
arch/arc/conf/files.arc
# $OpenBSD: files.arc,v 1.7 1996/09/19 00:30:37 imp Exp $ # # maxpartitions must be first item in files.${ARCH} # maxpartitions 16 maxusers 2 8 64 # Required files file arch/arc/arc/autoconf.c file arch/arc/arc/conf.c file arch/arc/arc/cpu_exec.c file arch/arc/arc/disksubr.c file arch/arc/dev/dma.c file arch/arc/arc...
# $OpenBSD: files.arc,v 1.8 1996/09/24 21:30:00 niklas Exp $ # # maxpartitions must be first item in files.${ARCH} # maxpartitions 16 maxusers 2 8 64 # Required files file arch/arc/arc/autoconf.c file arch/arc/arc/conf.c file arch/arc/arc/cpu_exec.c file arch/arc/arc/disksubr.c file arch/arc/dev/dma.c file arch/arc/...
add majors for wd & acd
add majors for wd & acd
Arc
isc
orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars
f4c83bb5aa8a674796027419c0d2197a38d1a1d6
lib/util.arc
lib/util.arc
; lib/util.arc: A collection of useful miscellanea ; Contributors: ; - Michael Arntzenius <daekharel@gmail.com> ; Persons we've shamelessly ripped off: ; - Conan Dalton <conan@conandalton.net> ; - absz (http://arclanguage.org/user?id=absz) ; - fallintothis (http://arclanguage.org/user?id=fallintothis) ; License: Do ...
; lib/util.arc: A collection of useful miscellanea ; Contributors: ; - Michael Arntzenius <daekharel@gmail.com> ; Persons we've shamelessly ripped off: ; - Conan Dalton <conan@conandalton.net> ; - absz (http://arclanguage.org/user?id=absz) ; - fallintothis (http://arclanguage.org/user?id=fallintothis) ; License: Do ...
add 'fst, 'snd, 'applied
lib/util.arc: add 'fst, 'snd, 'applied
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
ef873a7fc14a562c0bf978c2c5399125bc58c4eb
lib/statistics.arc
lib/statistics.arc
(require "lib/math.arc") (require "lib/extend.arc") ; statistics. 06 Oct 2010. ; Ali Moeeny (def diffSquared (x y) (apply + (map [* (- _ y)(- _ y)] x))) (def sumSquared (x y) (apply + (map * x y))) (def sumDiffMultiplied (x y) (with (mx (avg x) my (avg y)) (reduce + ...
(require "lib/util.arc") (require "lib/math.arc") (require "lib/extend.arc") ; statistics. 06 Oct 2010. ; Ali Moeeny (def diffSquared (x y) (apply + (map [* (- _ y)(- _ y)] x))) (def sumSquared (x y) (apply + (map * x y))) (def sumDiffMultiplied (x y) (with (mx (avg x) my (avg y)) ...
add setter for vectors (vector index referencing was accidentally pushed in last commit - thanks to rocketnia for telling me about defcall)
add setter for vectors (vector index referencing was accidentally pushed in last commit - thanks to rocketnia for telling me about defcall)
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
e8d75d9866f317d5a78211a410f2f4f456dcbb43
load/help.arc
load/help.arc
; On-line help system (def ppr-source (name) " Pretty-prints the source code of the function `name'. Is a function, so `name' is evaluated. See also: [[src]] " ((only [prn "(from \"" _ "\")"]) source-file*.name) (ppr source*.name)) (mac src (name) " Pretty prints the source code of the function `name'....
; On-line help system (def ppr-source (name) " Pretty-prints the source code of the function `name'. Is a function, so `name' is evaluated. See also: [[src]] " ((only [prn "(from \"" _ "\")"]) source-file*.name) (ppr source*.name)) (mac src (name) " Pretty prints the source code of the function `name'....
Enhance 'helpstr.
load/help.arc: Enhance 'helpstr. 'helpstr now returns nonempty help strings for any symbol which is either documented or bound to a non-nil value. This means that 'fns won't ignore undocumented fns. It also uses 'write rather than 'prn to write function signatures, which avoids the problem (bug?) that (prn '(foo "bar...
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
677c824bf637877d06a1d6a0ad900e3ade6b25d3
lib/coro.arc
lib/coro.arc
(require "lib/util.arc") (require "lib/extend.arc") ; simpler than point and robust against changes in it, given that 'point ; indicates that the form it produces must only be used as an escape procedure. (mac lcc (var . body) " Binds the current contination to `var' within `body'. See also [[point]] " `(ccc (...
; I haven't thought deeply enough about the proper semantics here, so please ; don't rely on this library. - rntz <daekharel@gmail.com> (2010-01-01) (require "lib/util.arc") (require "lib/extend.arc") ; simpler than point and robust against changes in it, given that 'point ; indicates that the form it produces must o...
add instability warning
lib/coro.arc: add instability warning
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
9a19872ebe7d0c07ce539a5d4b5f3fe865e7a66e
strings.arc
strings.arc
; Matching. Spun off 29 Jul 06. ; arc> (tostring (writec (coerce 133 'char))) ; ;> (define ss (open-output-string)) ;> (write-char (integer->char 133) ss) ;> (get-output-string ss) ;"\u0085" (def tokens (s (o sep whitec)) (let test (testify sep) (let rec (afn (cs toks tok) (if (no cs) (c...
; Matching. Spun off 29 Jul 06. ; arc> (tostring (writec (coerce 133 'char))) ; ;> (define ss (open-output-string)) ;> (write-char (integer->char 133) ss) ;> (get-output-string ss) ;"\u0085" (def tokens (s (o sep whitec)) (let test (testify sep) (let rec (afn (cs toks tok) (if (no cs) (c...
add cat, joinstr, and capitalize
add cat, joinstr, and capitalize
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
870f01cb61081726710cd47cac2988d0a88e4eef
lib/web.arc
lib/web.arc
; written by Mark Huetsch ; same license as Arc ($ (require openssl)) ($ (xdef ssl-connect (lambda (host port) (ar-init-socket (lambda () (ssl-connect host port)))))) (load "lib/re.arc") (load "lib/util.arc") (def parse-server-cookies (s) (map [map trim _] (map [m...
; written by Mark Huetsch ; same license as Arc ($ (require openssl)) ($ (xdef ssl-connect (lambda (host port) (ar-init-socket (lambda () (ssl-connect host port)))))) (load "lib/re.arc") (load "lib/util.arc") (def parse-server-cookies (s) (map [map trim _] (map [m...
fix bug where anchor was not being discarded in parse-url, take 2
fix bug where anchor was not being discarded in parse-url, take 2
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news