THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
package com.example.test; | |
import android.content.Intent; | |
import android.content.pm.ActivityInfo; | |
import android.graphics.PointF; | |
import android.net.Uri; | |
import android.os.ConditionVariable; |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
# Written by Brendan O'Connor, brenocon@gmail.com, www.anyall.org | |
# * Originally written Aug. 2005 | |
# * Posted to gist.github.com/16173 on Oct. 2008 | |
# Copyright (c) 2003-2006 Open Source Applications Foundation | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# |
localhost ~ # cat <<EOF> /etc/wpa_supplicant.conf | |
ctrl_interface=DIR=/run/wpa_supplicant GROUP=wheel | |
update_config=1 | |
EOF | |
localhost ~ # wpa_supplicant -iwlp1s0 -Dnl80211 -c/etc/wpa_supplicant.conf -B | |
Successfully initialized wpa_supplicant | |
localhost ~ # wpa_cli | |
wpa_cli v2.0 | |
Copyright (c) 2004-2012, Jouni Malinen <j@w1.fi> and contributors |
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.
$ python -m SimpleHTTPServer 8000
/* --- Usage --- */ | |
g++ server.c -o server | |
g++ client.c -o client | |
./server | |
./client 127.0.0.1 | |
/* --- server.c --- */ | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> |
/* | |
sudo apt-get install libblocksruntime-dev | |
clang -fblocks clang-blocks.c -lBlocksRuntime -o clang-blocks | |
CAVEAT: only works with clang and BlocksRuntime | |
*/ | |
#include <stdio.h> | |
int main(void) | |
{ |
package com.example.robolectric; | |
import static com.xtremelabs.robolectric.Robolectric.shadowOf; | |
import static org.mockito.Mockito.verify; | |
import java.io.IOException; | |
import java.net.*; | |
import org.junit.Before; | |
import org.junit.Test; |
GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.