Skip to content

Instantly share code, notes, and snippets.

View krlicmuhamed's full-sized avatar

Muhamed Krlić krlicmuhamed

  • IMASoft
  • Bosnia and Herzegovina
View GitHub Profile
@krlicmuhamed
krlicmuhamed / httpmessagebuilder.prg
Last active December 11, 2021 12:00
Build HTTP Request Messages using Visual FoxPro
*Example Usage:
CLEAR
Builder = CREATEOBJECT('HttpMessageBuilder')
*Builder.UserAgent = 'BK5'
Builder.AddHeader('TestHeader', 'test123 456')
Builder.AddHeader('TestHeader', 'test123 456')
Builder.AddParameter('TestParameter', 'Thisisat estparameter')
Builder.AddParameter('TestParameter', 'Thisisatestparam eter')
* You also get a free URLEncode function :)
Builder.URLEncode('str in g <3')
@solace
solace / extend-email-send.md
Last active November 20, 2020 06:58
Meteor: Extend default Email.send invocation

Use a non-SMTP mail method in Meteor

Requirements:

  • lodash (or underscore, you may need to change your _ functions to suit)
  • Meteor email package
Meteor.startup(function () {
 var sendEmail = _.bind(Email.send, Email);
@gcoonrod
gcoonrod / console
Created January 7, 2016 20:57
Testing winston custom logging
> $ npm start ⬡ 4.2.1
> [email protected] start /Users/coonrod/dev/node/winston-test
> node index.js
2016-01-07T20:59:32.426Z - info: Logger initialized, standard log levels.
2016-01-07T20:59:32.429Z - info: Testing syslog levels. Info through emerg should be visible.
Attempting level trace
Attempting level debug
Attempting level info
@simonbrowndotje
simonbrowndotje / FurnitureCompany.java
Last active August 29, 2015 14:23
C4 software architecture diagram for a furniture company.
package com.structurizr.example.core;
import com.structurizr.Workspace;
import com.structurizr.api.StructurizrClient;
import com.structurizr.model.Model;
import com.structurizr.model.Person;
import com.structurizr.model.SoftwareSystem;
import com.structurizr.model.Tags;
import com.structurizr.view.ElementStyle;
import com.structurizr.view.Shape;
@quark-zju
quark-zju / lodash.hpp
Last active February 5, 2020 02:14
Little C++ header inspired by Ruby and Lo-dash
// compile with -std=c++1y
#include <algorithm>
#include <functional>
#include <iterator>
#include <vector>
namespace LoDash {
using std::begin;
@ryanpitts
ryanpitts / summary_level_dict
Last active April 6, 2021 15:24
Summary level codes for Census and ACS
# Sources:
# http://mcdc2.missouri.edu/pub/data/sf32000/Techdoc/ch4_summary_level_seq_chart.pdf
# http://www2.census.gov/acs2011_1yr/summaryfile/ACS_2011_SF_Tech_Doc.pdf
SUMMARY_LEVEL_DICT = {
"010","United States",
"020","Region",
"030","Division",
"040","State",
"050","State-County",
"060","State-County-County Subdivision",