Skip to content

Instantly share code, notes, and snippets.

DBXDriver initialize.
DBXMysqlDriver subscribeDriver.
DBXOpenDBXDriver subscribeDriver.
DBXSqlite3Driver subscribeDriver.
DBXPostgresV2Driver subscribeDriver.
aaaa:= DBXDriver classPool at: #Drivers.
DBXDriver availableDrivers.

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@guillep
guillep / iot
Last active February 24, 2016 13:53
# Utiliser des cartes WSN430
## Matériel mis à disposition
- 1 dock USB pour flasher (avec câble rouge-blanc reliant l'UART1 à l'USB)
- 2 docks USB pour lien série (avec câble bleu reliant l'UART0 à l'USB)
- 2 cartes WSN430
@guillep
guillep / Instantiating a Cog VM simulator
Last active February 29, 2016 12:25
VM Simulator Scripts
| sim |
InterpreterStackPages initialize.
StackInterpreterSimulator initializeWithOptions: Dictionary new.
sim := StackInterpreterSimulator new.
sim openOn: 'pharo4/Pharo.image'.
sim openAsMorph.
sim initStackPages.
sim loadInitialContext.
sim internalizeIPandSP.
items := OrderedCollection new.
items add: (StartupAction name: 'Setup Pharo Iceberg Repository' code: [ | myRepoLocation |
myRepoLocation := FileLocator home / 'Projects/Pharo/git-repos/pharo'.
IceRepository registry
detect: [ :e | e name = 'pharo' ]
ifFound: [ :pharo |
pharo
location: myRepoLocation;
subdirectory: 'src' ]
]).
StartupPreferencesLoader default executeAtomicItems: {
StartupAction
name: 'Git Settings'
code: [
FileStream stdout
cr; nextPutAll: 'Setting the ssh credentials'; cr.
Iceberg enableMetacelloIntegration: true.
IceCredentialsProvider useCustomSsh: true.
IceCredentialsProvider sshCredentials
@guillep
guillep / gist:cfdae9dbd69d22e459661d17457a50d0
Created May 14, 2018 08:43
Inverse dependency analysis
report := DADependencyChecker new computeImageDependencies.
report knownDependantsOf: 'Glamour-Examples'
@guillep
guillep / gist:10acba12517be9ebd43ad53f2160f989
Created May 14, 2018 09:07
How to add item to world menu
This is done via the "worldMenu" pragma.
Browse the senders of #worldMenu and you will see how this is done.
```
menuCommandOn: aBuilder
<worldMenu>
(aBuilder item: #Tools)
order: 1.0;
target: self;
@guillep
guillep / gist:f70abb710c523709a67c294b75a8033b
Created May 14, 2018 09:11
How to browse Hermes packages
```
reader := HEBinaryReader new
stream: ('AST-Core.hermes' asFileReference) binaryReadStream;
yourself.
package := HEPackage readFrom: reader.
```
If you inspect the package you will see all the content in the Hermes file (the format allows us to have different root elements in the file, but we are exporting a package per file).
If it is useful we can include it as an inspector.
@guillep
guillep / launch.json
Created January 11, 2019 22:36
VM Scripts
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",