Skip to content

Instantly share code, notes, and snippets.

@aemkei
aemkei / LICENSE.txt
Last active April 12, 2024 21:27 — forked from 140bytes/LICENSE.txt
Binary Tetris - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@btoone
btoone / curl.md
Last active May 14, 2024 19:32
A curl tutorial using GitHub's API

Introduction

An introduction to curl using GitHub's API.

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 22, 2024 04:43
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@GoSteven
GoSteven / algorithm_and_data_structure.md
Created June 23, 2012 11:48
algorithm and data structure

ant colony

Thus, when one ant finds a good (i.e., short) path from the colony to a food source, other ants are more likely to follow that path, and positive feedback eventually leads all the ants following a single path. The idea of the ant colony algorithm is to mimic this behavior with "simulated ants" walking around the graph representing the problem to solve.


List of algorithms

@riovv
riovv / array_inversion.js
Created August 24, 2012 15:00
Unreadable Array inversion counter!
/*
* Count inversions in an array using JavaScript
* Friday fun writing algorithms as UNREADABLE CODE WITH FEW LINEZ FTW :D::D
*/
var array_inversions = function (A) {
var I = 0,
R = function (A) { return (A.length < 2) ? A : M(R(A.splice(0, A.length/2)), R(A)) },
M = function (B, C) {
var D = []
@amaxwell01
amaxwell01 / interviewitems.MD
Created September 15, 2012 14:17
My answers to over 100 Google interview questions

##Google Interview Questions: Product Marketing Manager

  • Why do you want to join Google? -- Because I want to create tools for others to learn, for free. I didn't have a lot of money when growing up so I didn't get access to the same books, computers and resources that others had which caused money, I want to help ensure that others can learn on the same playing field regardless of their families wealth status or location.
  • What do you know about Google’s product and technology? -- A lot actually, I am a beta tester for numerous products, I use most of the Google tools such as: Search, Gmaill, Drive, Reader, Calendar, G+, YouTube, Web Master Tools, Keyword tools, Analytics etc.
  • If you are Product Manager for Google’s Adwords, how do you plan to market this?
  • What would you say during an AdWords or AdSense product seminar?
  • Who are Google’s competitors, and how does Google compete with them? -- Google competes on numerous fields: --- Search: Baidu, Bing, Duck Duck Go
@jedfoster
jedfoster / Interview Questions.md
Last active October 23, 2021 02:59
Interview Questions
  1. What brings you to web development? What's your goal? What's your passion? What wakes you up in the middle of the night?

  2. Tell me about common themes you run into working in the UI. How did you address them?

    • UX/Design changes?
    • What’s difficult, what’s fun?
    • Localization
  3. What do you do to keep up to date with technology (blogs, conferences, etc)?

    • What blogs do you follow?
    • If you could master one technology this year, what would it be?
@automaticalldramatic
automaticalldramatic / Exercises.md
Last active April 9, 2018 10:04
All those interviews, gave me a good list of interview questions that people generally ask.

Front end coding challenge

Building a simple Web-Application for Analyzing Web-Sites

The objective is to build a web-application that does some analysis of a web-page/URL.

  • The application should show a form with a text-field thus the user can type in the URL of the webpage being analyzed.
  • Additionally to form should contain a button for sending the input to the server as well as to trigger the server-side analysis process.
  • After processing the results should be shown to the user in terms of a simple table below to the form. The result comprises the following information:
@qawemlilo
qawemlilo / node-streams.md
Last active September 9, 2020 05:37
Using Node streams to append audio files

Today I decided to clean up and organise files on windows computer at work. This process involved deleting files I no longer have use for and creating grouping the rest in folders. So I ended up with folders for audio, video, projects, ebooks, e.t.c.

One of the folders that I came across contained about 50 small mp3 files. Before deleting the files I had to play them just to make sure they didn't contain anything important. What do I know, turns out they clips of a DHH(the ROR creator) interview - please don't ask me how they got to my computer. He's quite an opinionated guy and I decided I wanted to keep the files. But 50 files? Wouldn't it be nice if I could glue them together into a single file? Well, being the hacker that I am I popped open my terminal and started writing a program.

I broke down the task to two main things.

  1. Read and sort the files according to their sequence
  2. Somehow combine the files and write them to a single file

The first thing turned out to be quite easy to do because th