This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| pico-8 cartridge // http://www.pico-8.com | |
| version 16 | |
| __lua__ | |
| -- make it 400 bytes long | |
| k={1,2,4,8,9,10,7} | |
| -- k={9,9,9,9,10,10,7} | |
| -- k={0,5,6,7,15,14,8,2,4,9,10,11,3,12,13} | |
| -- k={0,0,0,0,0,1,1,1,1,12,12,7} | |
| -- k={5,6,15,9,7} | |
| s=sin |
| 'More information & instructions: | |
| 'https://swissmacuser.ch/microsoft-word-mail-merge-into-single-documents/ | |
| Option Explicit | |
| Sub MailMergeSaveEachRecordToFile() | |
| ' | |
| ' Save each single Mail Merge Record into a seperate Document | |
| ' | |
| Dim rec, lastRecord As Integer | |
| Dim docNameField, strDocName, savePath As String |
| { | |
| "emojis": [ | |
| {"emoji": "👩👩👧👧", "name": "family_mothers_two_girls", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👧", "category": "p", "order": ""}, | |
| {"emoji": "👩👩👧👦", "name": "family_mothers_children", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👦", "category": "p", "order": ""}, | |
| {"emoji": "👩👩👦👦", "name": "family_mothers_two_boys", "shortname": "", "unicode": "", "html": "👩‍👩‍👦‍👦", "category": "p", "order": ""}, | |
| {"emoji": "👨👩👧👧", "name": "family_two_girls", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👧", "category": "p", "order": ""}, | |
| {"emoji": "👨👩👧👦", "name": "family_children", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👦", "category": "p", "order": ""}, | |
| {"emoji": "👨👩👦👦", "name": "family_two_boys", "shortname": "", "unicode": "", "html": "👨&zw |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Dummy Page</title> | |
| <meta name="description" content="Simple, quick, standalone responsive placeholder Website without any additional resources"> | |
| <meta name="author" content="https://gist.github.com/oliveratgithub"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css" integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w" crossorigin="anonymous"> | |
| <!--[if lt IE 9]> |
| public static void FizzBuzz() | |
| { | |
| Dictionary<Func<int, bool>, Func<int, string>> rules = new Dictionary<Func<int, bool>, Func<int, string>>(); | |
| rules.Add(x => x % 3 == 0, x => "fizz"); | |
| rules.Add(x => x % 5 == 0, x => "buzz"); | |
| rules.Add(x => x % 5 != 0 && x % 3 != 0, x => x.ToString()); | |
| rules.Add(x => true, x => "\n"); | |
| var output = from n in Enumerable.Range(1, 100) | |
| from f in rules |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
This page summarizes the tips and checklists found in The Pragmatic Programmer.
For more information about The Pragmatic Programmers LLC, source code for the examples, up-to-date pointers to Web resources, and an online bibiography, visit us at www.pragmaticprogrammer.com
1. Care About Your Craft
Why spend your life developing software unless you care about doing it well?
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| namespace Utils | |
| { | |
| /// <summary> | |
| /// Represents a range of dates. | |
| /// </summary> | |
| public struct DateRange : IEnumerable<DateTime> |
| // Use like BusSetup.StartWith<Conservative>().Apply<UiMessages>().Construct(); | |
| internal class UiMessages : ISetup<IConfigurableBus> | |
| { | |
| void ISetup<IConfigurableBus>.Accept(IConfigurableBus setup) | |
| { | |
| setup.ConfigurePublishing(obj => | |
| { | |
| obj.MessageMatch(mi => mi.IsType<IUIMsg>()).PublishPipeline(new UiMsgDispatcher()); | |
| }); |
| using System; | |
| using System.IO; | |
| using System.Net; | |
| using System.Text; | |
| using System.Web; | |
| public class HttpFileServer : IDisposable | |
| { | |
| private readonly string rootPath; | |
| private const int bufferSize = 1024*512; //512KB |