.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void print_variable(char *variable) | |
{ | |
printf("Variable is %d\n",*variable); | |
} | |
int main() | |
{ | |
int variable = 1; | |
print_variable(&variable); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#pragma warning(push) | |
#pragma warning(disable:4996) | |
#include <cassert> | |
#include <memory> | |
#include <vector> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%################################################################### | |
% Homework #3. Number of features in a 24x24 pixel image | |
% Student: Pablo J. Estrada. ID: 2014-25245 | |
%################################################################### | |
% Here are our patterns. We need only specify their dimensions. | |
patt_x = [2,1,2,3,1] | |
patt_y = [1,2,2,1,3] | |
function res = count(x, y, patt_len,patt_x,patt_y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%STABILITY OF QR | |
N = 100; | |
C = []; | |
S0 = []; S1 = []; S2 = []; T0 = []; T1 = []; T2 = []; | |
for k = 1:N | |
c = 10^(10*rand); C = [C c]; | |
% Create m by n (m >= n) matrix with condition number c | |
m = 1 + round(100*rand); | |
n = min(1+round(m*rand),m); | |
A = givcond(m,n,c); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# We need this to initialize python packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import json | |
import pickle | |
def decode(dic, bitstr): | |
res = [] | |
length = bitstr.bit_length() - 1 | |
if bitstr >> length != 1: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
tables = [ | |
"Dictionary_codi", | |
"Dictionary_item", | |
"NFC_hits", | |
"album", | |
"apply", | |
"banner", | |
"board_comment", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## -*- coding: utf-8 -*- | |
import json | |
import sys | |
import time | |
import apache_beam as beam | |
from apache_beam.io.fileio import CompressionTypes as ct | |
from apache_beam.utils.options import PipelineOptions | |
from beam_utils.sources import CsvFileSource |
OlderNewer