Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Serge Stinckwich SergeStinckwich

🎯
Focusing
View GitHub Profile
@dive
dive / fix-emacs-permissions-catalina.el
Created Sep 29, 2019
Fix Emacs permissions on macOS Catalina
View fix-emacs-permissions-catalina.el
;;; package --- Fix permissions for Emacs.app on macOS Catalina
;;; Author: Artem Loenko
;;; Mail-To: <artyom.loenko@mac.com>
;;; Commentary:
;;; Code:
(defconst _default-emacs-app-plist-path "/Applications/Emacs.app/Contents/Info.plist")
(defconst _temp-buffer-name "*fixing Emacs permissions*")
(defconst _temp-buffer (get-buffer-create _temp-buffer-name))
(with-current-buffer _temp-buffer (erase-buffer))
@oliveiraallex
oliveiraallex / tg2p.st
Created Jul 25, 2018 — forked from jdevoo/tg2p.st
Not so Terse Guide to Pharo
View tg2p.st
"**************************************************************************
* Allowable characters: *
* - a-z *
* - A-Z *
* - 0-9 *
* - .+/\*~<>@%|&? *
* - blank, tab, cr, ff, lf *
* *
* Variables: *
* - variables must be declared before use *
anonymous
anonymous / Tubular Bells - Master Script to control functions
Created Mar 17, 2016
'Tubular Bells' - Sonic Pi code
View Tubular Bells - Master Script to control functions
with_fx :reverb do
use_synth :piano
play:E5, amp: 0.7, sustain: 1, release: 3
sleep 0.20
piano_intro
end
with_fx :reverb do
in_thread(name: :piano) do
loop do
@ibtisamtauhidi
ibtisamtauhidi / SolarSystemSimulator
Last active Aug 9, 2017
A simple solar system simulator using Processing
View SolarSystemSimulator
/*
The Solar System Simulator - I
ComputeRaptor.com
Syed I. Tauhidi
*/
import java.util.Date;
// Eccentricity, aphelion (semi-major axis) and inclination, along with
// the radius of planets are stored in the following array
@bjartwolf
bjartwolf / color.st
Created Jun 8, 2014
Change color of Rapiro from Pharo
View color.st
sPort := SerialPort new.
sPort baudRate: 57600.
sPort close.
sPort openPort: '/dev/ttyAMA0'.
sPort nextPutAll: '#PR010G255B255T001'.
@simonmichael
simonmichael / sm-Ledger.st
Created May 3, 2014
a prototype squeak port of Ledger, 2007
View sm-Ledger.st
"
prototype ledger file parser in squeak
Simon Michael
test scripts:
s1 := LedgerParserTests sample1 readStream
PositionableStream
2007/10/7 the fairmont sonoma mission inn & spa
expenses:food:dining $11
@eMaringolo
eMaringolo / ZnSimpleWebServer.st
Created May 28, 2012
The simplest hello world server using Zinc HTTP Components <http://zn.stfx.eu/zn/index.html>
View ZnSimpleWebServer.st
(ZnServer startDefaultOn: 1701)
onRequestRespond: [ :request |
ZnResponse ok: (ZnEntity text: 'Hello World!') ]
@dalehenrich
dalehenrich / whybotherwithgit.md
Created Feb 27, 2012
Why bother with git at all?
View whybotherwithgit.md

Philippe,

You are not a party pooper ... these are exactly the kinds of questions I'm looking for They are excellent questions.

I'm going to highlight several of your points and then answer:

"keeping the Monticello and git metadata in sync. For example since it's still Monticello there has to be all the Monticello metadata which is laying around in "strange" files ... makes it quite unlikely that you can edit the source with a

@frankshearar
frankshearar / gist:1632449
Created Jan 18, 2012
Bootstrapping LanguageBoxes from Squeak 4.3
View gist:1632449
"===== Set up Squeak's compiler correctly ====="
Scanner prefAllowUnderscoreSelectors: true.
Scanner allowUnderscoreAsAssignment: false.
"===== Things that Squeak needs from Pharo ====="
Installer cache
addPackage: 'Pharo-Compatibility-fbs.1';
addPackage: 'VB-Regex-AdrianLienhard.48';
install.
@SergeStinckwich
SergeStinckwich / gist:1008000
Created Jun 4, 2011
One liners in Smalltalk
View gist:1008000
"Smalltalk version of http://solog.co/47/10-scala-one-liners-to-impress-your-friends/ "
"1. Multiple Each Item in a List by 2"
(1 to: 10) * 2.
"2. Sum a List of Numbers"
"Version 1"
(1 to:1000) reduce:[:a :b|a+b].
"Version 2"
(1 to:1000) sum.