Portions taken from http://www.cs.utexas.edu/~mitra/csSpring2011/cs327/cx_mac.html (in case that link ever dies.)
Assume you've got homebrew installed.
Download the following files from Oracle
| # 최 상위 EditorConfig 파일 | |
| root = true | |
| # 모든 파일에 유닉스 스타일의 줄바꿈과 파일 끝을 지정합니다 | |
| [*] | |
| end_of_line = lf | |
| insert_final_newline = true | |
| # 여러 유형의 확장자에 대한 기본 문자열 설정을 합니다 | |
| [*.{js,py}] |
| root = true | |
| [*] | |
| indent_style = space | |
| indent_size = 2 | |
| end_of_line = lf | |
| charset = utf-8 | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true |
| #!/bin/bash | |
| if [[ "$1" = "fourbox" ]]; then | |
| (i3-save-tree |sed -e's/^\s*\/\/\s[^\"].*//g' -e's/^\s*\/\///g' | \ | |
| jq '..|objects|select(.type=="con")|select(has("nodes")|not)'| \ | |
| jq -s '{layout:"splith","type":"con",nodes:[{"layout":"splitv",nodes:[.[0],.[1]]},{"layout":"splitv",nodes:[.[2],.[3]]}]}') > /tmp/layout | |
| else | |
| (i3-save-tree |sed -e's/^\s*\/\/\s[^\"].*//g' -e's/^\s*\/\///g' | \ | |
| jq '..|objects|select(.type=="con")|select(has("nodes")|not)'| \ | |
| jq -s '{layout:"'$1'","type":"con",nodes:.}') > /tmp/layout |
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(query_start, clock_timestamp()), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(query_start, clock_timestamp()), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
Portions taken from http://www.cs.utexas.edu/~mitra/csSpring2011/cs327/cx_mac.html (in case that link ever dies.)
Assume you've got homebrew installed.
Download the following files from Oracle
| #include <sys/socket.h> | |
| #include <sys/types.h> | |
| #include <netinet/in.h> | |
| #include <arpa/inet.h> | |
| #include <netdb.h> | |
| #include <unistd.h> | |
| #include <string.h> | |
| #include <iostream> | |
| #include <stdarg.h> | |
| #include <stdio.h> |
| function pp(givenNth, curNth = 0, dir = 1 /* { 1, -1 } */, result = 0) { | |
| // console.log(isTurnAround(curNth + 1), arguments[0], arguments[1], arguments[2], arguments[3]); | |
| if (givenNth === curNth) { | |
| return result; | |
| } else { | |
| // if (isTurnAround(curNth + 1) === -1) { console.log('Turnaround desune ^ * ^'); } | |
| return pp(givenNth, curNth + 1, isTurnAround(curNth + 1) * dir, result + dir); | |
| } | |
| } |
| import os | |
| import glob | |
| import time | |
| import RPi.GPIO as GPIO | |
| from bluetooth import * | |
| os.system('modprobe w1-gpio') | |
| os.system('modprobe w1-therm') | |
| GPIO.setmode(GPIO.BCM) |
| package me.davidvassallo.aquarium; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.OutputStream; | |
| import java.util.Set; | |
| import java.util.UUID; | |
| import android.app.Activity; | |
| import android.bluetooth.BluetoothAdapter; |