Skip to content

Instantly share code, notes, and snippets.

Sub f()
For i = 20 To 30
For j = 5 To 5
Cells(i, j).Interior.Color = Cells(i, 10).DisplayFormat.Interior.Color
Next
Next
End Sub
#include <cstdio>
using namespace std;
unsigned int win[1000000];
int main(void)
{
int t, n, k;
# nmcli con add type wifi ifname wlp3s0 con-name work-wifi ssid work-ssid
# nmcli con edit id work-wifi
nmcli> set ipv4.method auto
nmcli> set 802-1x.eap peap
nmcli> set 802-1x.phase2-auth mschapv2
nmcli> set 802-1x.identity myusername
nmcli> set 802-1x.password mypassword
nmcli> set wifi-sec.key-mgmt wpa-eap
nmcli> save
nmcli> activate
(In function)
defer func() {
log.Fatal("defer1")
if r := recover(); r != nil {
log.Fatal("ERROR")
}
}
rows, err := db.Query(sql)
if err != nil {
@beomkm
beomkm / example
Last active October 18, 2017 15:20
basic processing code
void setup()
{
size(400, 300); //window size
}
void draw()
{
background(255, 255, 255); //clear the window with background color (Red, Green, Blue)
strokeWeight(4); // the thickness of line
@beomkm
beomkm / s.cpp
Created July 18, 2016 05:37
kut1010
#include <iostream>
using namespace std;
bool isPrime(int n)
{
//omit 1
for (int i = 2; i*i <= n; i++) {
if (n%i == 0) return false;
}
@beomkm
beomkm / client
Last active March 29, 2016 02:45
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#define BUF_SIZE 1024
void err_h(char *msg);
269,265,275,513,244,739,273
function choo() {
return oChatRoom.valueOf()._oDoc._aMemberList[Math.floor(Math.random()*oChatRoom.valueOf()._oDoc._aMemberList.length)].nickname
}
oChatRoom._processNotiItem = function(h, f, b) {
if (g_sUserId !== f) {
return;
}
var c = b.cafeId;