Skip to content

Instantly share code, notes, and snippets.

View narkeeso's full-sized avatar

Michael Narciso narkeeso

View GitHub Profile
@narkeeso
narkeeso / ollama.docker-compose.yml
Last active February 26, 2024 20:40
Simple Ollama Backend and WebUI Docker Compose
version: "3.7"
services:
open-webui:
image: ghcr.io/open-webui/open-webui:main
depends_on:
- ollama
volumes:
- open-webui:/app/backend/data
ports:
- 9999:8080
@narkeeso
narkeeso / animate-outlet.js
Created June 26, 2015 17:46
Simple Ember Animation View Mixin
import Ember from 'ember';
/**
* Mixin support for animating transitions/outlets.
*/
var AnimateOutletMixin = Ember.Mixin.create(Ember.Evented, {
/**
* @private
* @property {jQuery} _$clone - temporary store of the cloned view for shared access
*/

Folder Structure

Motivations

  • Clear feature ownership
  • Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, prevents accidental regressions, avoids huge directories of not-actually-reusable modules, etc)
App = Ember.Application.create({
LOG_TRANSITIONS: true
});
// ROUTES
// Routes determine the naming convention for controllers, route, and models
App.Router.map(function() {
this.resource('dashboard', { path: '/onboarding' });
this.resource('onboarding', { path: '/onboarding/:form_id' }, function() {
this.route('step1');
<div id="touts_message" style="width: 170px; height:140px; margin-right: 33px;">
<a href="http://www.facebook.com/dbhtees"><img style="border: 0;" src="http://www.designbyhumans.com/downloads/scraps/touts/facebook20101102.gif" /></a>
<h2><a href="http://www.facebook.com/dbhtees"></a></h2>
</div>
<div id="touts_message" style="width: 170px; height:140px; margin-right: 33px;">
<a href="http://www.twitter.com/designbyhumans"><img style="border: 0;" src="http://www.designbyhumans.com/downloads/scraps/touts/twitter20101102.gif" /></a>
<h2><a href="http://www.twitter.com/designbyhumans"></a></h2>
</div>
=info-box($color)
background-color: $color
border-color: darken(desaturate($color, 70), 10)
section
&.info
font-size: 12px
font-weight: bold
padding: 1px 15px
case 'remove':
$clean = array( 'hash' => sqlite_escape_string(trim($_GET['hash'])) );
$query = 'SELECT sig, art FROM winners WHERE hash = "' . $clean['hash'] . '"';
$winner = array_shift($database->arrayQuery($query));
if (!$winner) {
header( 'Location: ./admin.php' );
die;
}
// remove files and directory
import gs.TweenMax;
import gs.easing.*;
// Begin XML Data Here
// Initialize Caption Number
var capNum:int = 0;
var caption:XML = <WORDS>
<CAP>This is caption 1!</CAP>
<CAP>This is caption 2!</CAP>