Skip to content

Instantly share code, notes, and snippets.

@tariqhamid
tariqhamid / from15.1 Introduction to the Message Pattern Theory.st
Created August 1, 2020 22:43 — forked from hkoba/from15.1 Introduction to the Message Pattern Theory.st
Examples of Messaging Pattern in Philippe Mougin's F-Script. These are excerpts from FScriptGuide, could be reached at http://macgroup.rma.ac.be/Docs/devel/F_Script_Guide.pdf
"With F-Script, the operations that apply to single objects can be applied with equal ease to
the processing of entire arrays."
"What is fun is that the same sort of element-by-element parallel processing can be obtained with any
kind of message!"
> {1,2,3,4} * {1,2,3,4}
{1, 4, 9, 16}
> {1,2,3,4} max:{-10,20,0,2}
AWSTemplateFormatVersion: 2010-09-09
Resources:
VPC:
Type: AWS::EC2::VPC
Properties:
CidrBlock: 10.0.0.0/16
PublicSubnetA:
Type: AWS::EC2::Subnet
how to fix sound archlinux asus c302ca
1. `dsp_fw_release.bin` has to point to `/lib/firmware/intel/dsp_fw_release_v969.bin`
2. in `/usr/share/alsa/ucm/sklnau8825max`:
## `HiFi.conf`
```
function insertTransaction(dateString, description, amount) {
var result = {
success: false,
message: null
};
try {
var budgetSpreadsheetId = '<INSERT-SPREADSHEET-ID-HERE>';
// Open the spreadsheet
function insertTransaction(dateString, description, amount) {
var result = {
success: false,
message: null
};
try {
var budgetSpreadsheetId = '<INSERT-SPREADSHEET-ID-HERE>';
// Open the spreadsheet
@tariqhamid
tariqhamid / inform7_assertions.txt
Created June 26, 2019 11:57 — forked from aparrish/inform7_assertions.txt
"Inform 7 Assertions," a series of prose poems generated from "Writing with Inform" (http://inform7.com/learn/man/WritingWithInform.txt). I found every indented code snippet in the book that contained the phrase "is a(n)" and sorted them in alphabetical order.
A Bee Chamber is a kind of room. The printed name of a Bee
Chamber is usually "Hexagonal Room". The description of a
Bee Chamber is usually "Waxy, translucent walls surround
you on six sides; the floor and ceiling are made of the
same material, gently uneven. There are exits in every
direction, cut into the faces or the corners."
A Bengal tiger is a kind of animal.
A DVD is a kind of artwork.

Cheat Sheet: Simple Authentication in Rails 5 with has_secure_password

The goal of this cheatsheet is to make it easy to add hand-rolled authentication to any rails app in a series of layers.

First the simplest/core layers, then optional layers depending on which features/functionality you want.

Specs
AUTHOR Ira Herman
LANGUAGE/STACK Ruby on Rails Version 4 or 5
@tariqhamid
tariqhamid / FederationMetadata.xml
Created June 25, 2018 13:51 — forked from craigplummer/FederationMetadata.xml
FederationMetadata Example
<?xml version="1.0" encoding="utf-8"?>
<EntityDescriptor ID="_271f377f-78d8-4133-8c46-a73c4936bb1f" entityID="https://example.com" xmlns="urn:oasis:names:tc:SAML:2.0:metadata">
<RoleDescriptor xsi:type="fed:ApplicationServiceType" xmlns:fed="http://docs.oasis-open.org/wsfed/federation/200706" protocolSupportEnumeration="http://docs.oasis-open.org/wsfed/federation/200706" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<fed:TargetScopes>
<wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Address>https://example.com/</wsa:Address>
</wsa:EndpointReference>
</fed:TargetScopes>
<fed:PassiveRequestorEndpoint>
<wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing">
@tariqhamid
tariqhamid / rebocalc.rebol
Created February 12, 2017 01:07 — forked from draegtun/rebocalc.rebol
Spreadsheet in Rebol2 by Carl Sassenrath - http://www.rebol.org/view-script.r?script=rebocalc.r - Replicated here for nicer syntax highlighting
REBOL [
Title: "Rebocalc"
Date: 19-Jun-2001
Version: 1.0.0
File: %rebocalc.r
Author: "Carl Sassenrath"
Purpose: {The world's smallest spreadsheet program, but very powerful.}
Email: %carl--rebol--com
library: [
level: 'beginner
@tariqhamid
tariqhamid / webpack.config.js
Created February 1, 2017 12:59 — forked from learncodeacademy/webpack.config.js
Sample Basic Webpack Config
var debug = process.env.NODE_ENV !== "production";
var webpack = require('webpack');
module.exports = {
context: __dirname,
devtool: debug ? "inline-sourcemap" : null,
entry: "./js/scripts.js",
output: {
path: __dirname + "/js",
filename: "scripts.min.js"