Skip to content

Instantly share code, notes, and snippets.

View dreamineering's full-sized avatar

howzus dreamineering

View GitHub Profile
@dreamineering
dreamineering / README.md
Created June 17, 2024 20:04 — forked from disler/README.md
Use these Prompt Chains to build HIGH QUALITY AI Agents (Agentic Building Blocks)

Setup

  1. Create a new directory with these three files (requirements.txt, main.py, README.md)
  2. python -m venv venv
  3. source venv/bin/activate
  4. pip install -r requirements.txt
  5. python main.py
  6. Update main() to run the example prompt chains
@dreamineering
dreamineering / README.md
Created June 17, 2024 20:04 — forked from disler/README.md
Use these Prompt Chains to build HIGH QUALITY AI Agents (Agentic Building Blocks)

Setup

  1. Create a new directory with these three files (requirements.txt, main.py, README.md)
  2. python -m venv venv
  3. source venv/bin/activate
  4. pip install -r requirements.txt
  5. python main.py
  6. Update main() to run the example prompt chains
# An example of Functional Reactive Programming, by implementing a
# simple collaborative piano.
# By Mikael Brevik <@mikaelbr>
socket = io.connect()
scale = [
'A2', 'Bb2', 'B2', 'C3', 'Db3', 'D3', 'Eb3', 'E3', 'F3', 'Gb3', 'G3', 'Ab3',
'A3', 'Bb3', 'B3', 'C4', 'Db4', 'D4', 'Eb4', 'E4', 'F4', 'Gb4', 'G4', 'Ab4',
'A4', 'Bb4', 'B4', 'C5'
/**
* This file/module contains all configuration for the build process.
*/
/**
* Load requires and directory resources
*/
var join = require('path').join,
bowerrc = JSON.parse(require('fs').readFileSync('./.bowerrc', {encoding: 'utf8'})),
bowerJSON = bowerrc.json.replace(/^\.?\/?/, './'),
Maybe = function(value) {
var Nothing = {
bind: function(fn) {
return this;
},
isNothing: function() {
return true;
},
val: function() {
throw new Error("cannot call val() nothing");
///
var pkg = require("./package.json")
, gulp = require("gulp")
, gutil = require("gulp-util")
, concat = require("gulp-concat")
///
// HTML (Jade)
///
var jade = require("gulp-jade")
@dreamineering
dreamineering / app.js
Created November 6, 2013 17:19 — forked from auser/app.js
angular.module('myApp',
['ngRoute', 'myApp.services', 'myApp.directives']
)
.config(function(AWSServiceProvider) {
AWSServiceProvider.setArn('arn:aws:iam::<ACCOUNT_ID>:role/google-web-role');
})
.config(function(StripeServiceProvider) {
StripeServiceProvider.setPublishableKey('pk_test_YOURKEY');
})
.config(function($routeProvider) {
'use strict';
var directives = angular.module('login.directive', []);
directives.directive('login', ['$rootScope', '$compile', '$http', '$templateCache',
function($location, $rootScope, $compile, $http, $templateCache) {
...
definition.link = function postLink(scope, element, attrs) {
@dreamineering
dreamineering / gist:6536909
Last active December 22, 2015 21:59
git help
If you get teh cannot push Bullshit.
git push origin `git subtree split --prefix bin master`:master --force
> jitsu deploy master [9345f74]
info: Welcome to Nodejitsu matt.mischewski
info: jitsu v0.13.0, node v0.10.4
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in src/server.js
info: Creating snapshot 0.0.0-12
info Uploading: [=============================] 100%
error: Error running command deploy
error: ETIMEDOUT