Skip to content

Instantly share code, notes, and snippets.

@mackjoner
mackjoner / sublime_text3_crack.md
Created February 15, 2016 03:32 — forked from sublime-crack4/sublime_text3_crack.md
Sublime Text crack 3103 3083 Win64 Win32 Linux64 Linux32 OSX Mac MacOS latest

cat

To pupils: all binaries can be downloaded http://pan.baidu.com/s/1ntCChyp

After overwriting, maybe need to run chmod +x /path/to/sublime_text. For linux default installation, need to add sudo.

For programmers:

anonymous
anonymous / aba12c.py
Created February 4, 2015 12:01
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# pylint: disable=C0111
# GleanStart
# 3
# 3 5
# -1 -1 4 5 -1
# 5 5
# 1 2 3 4 5
template <class number>
void input(number *ptr){
register char c = getchar_unlocked();
while (c < 33)
c = getchar_unlocked();
*ptr = 0;
while (c > 33){
*ptr = (*ptr * 10) + (c - '0');
c = getchar_unlocked();
}
#include <bits/stdc++.h>
template <class number>
void input(number *ptr)
{
register char c = getchar_unlocked();
while (c < 33)
c = getchar_unlocked();
*ptr = 0;
while (c > 33)
{
class fibmatwhip:
def __init__(self, mat=None):
self.mat = mat or (1, 1, 1, 0)
self.cache = {
0: self.mat,
}
self.cache_max = 0
def fib(self, n):
from math import log
@zsrinivas
zsrinivas / Quicksort.c
Last active August 29, 2015 14:01
A lame implementaion of Quick Sort
/*Test Program*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <assert.h>
#include <ctype.h>
#include "quicksort.h"
#define MAXSIZ 100000
int main(int argc, char const *argv[])
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <strings.h>
#define MAXnMAX 10000
int main(int argc, char const *argv[])
{
int maxlosers[MAXnMAX],pint,temp,max,nextmax;
int n,k=1,i;
@willurd
willurd / web-servers.md
Last active May 11, 2024 21:00
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 11, 2024 07:10
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname