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
(function(window) { | |
'use strict'; | |
var | |
CLASS_REG = /^\.[a-zA-Z_]+[a-zA-Z_0-9-]*/ | |
,ID_REG = /^\#[a-zA-Z_]+[a-zA-Z_0-9-]*/; | |
var Selector = function(s) { | |
return new Selector.fn.init(s); | |
} | |
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
DROP DATABASE IF EXISTS GROUP_PROJECT_2014; | |
CREATE DATABASE GROUP_PROJECT_2014; | |
USE GROUP_PROJECT_2014; | |
CREATE TABLE Team ( | |
team_num DECIMAL(2,0) PRIMARY KEY, | |
name CHAR(20) | |
); | |
CREATE TABLE Coach( | |
team_num DECIMAL(2,0) NOT NULL, | |
last_name CHAR(20), |
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
function fn() { | |
var args = Array.prototype.slice.call(arguments); | |
var node; | |
var i = 0; | |
while(node = args.shift()) { | |
if(typeof node == 'function') { | |
node(); | |
console.log("Function found at index %d", i); | |
break; |
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
{ | |
if(! word) | |
return; | |
word = (word).toString(); | |
var ret = ""; | |
for(var i = 0; i < word.length; i++) | |
{ |
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
function camel_case_rev(word) | |
{ | |
if(! word) | |
return; | |
word = (word).toString(); | |
var ret = ""; | |
for(var i = 0; i < word.length; i++) |
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
#include <stdio.h> // fprintf | |
#include <stdlib.h> // malloc | |
#include <string.h> // strlen | |
#include <ctype.h> // toupper, tolower | |
/* | |
* a string is an array of characters, in C, all arrays | |
* are always passed never passed value, always a pointer to | |
* the variable | |
* This is why the caller does not need to call the function like: |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <ctype.h> | |
/* | |
* const char* const read only | |
* const char* is read/write | |
*/ | |
int find_str_in_str(const char* const base, const char* const sub) |
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
#include <iostream> | |
#include <map> | |
#include <string> | |
#include <algorithm> | |
#define NL std::cout << std::endl | |
using namespace std; | |
void __(const char *s) { |
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
#include <iostream> | |
#include <deque> | |
#include <algorithm> | |
#include <iterator> | |
#include <cstring> | |
#include <vector> | |
using namespace std; | |
// non-breaking-s-pace |
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
objects = main.o Var.o List.o | |
CCFLAGS = -Wall -Wextra -Wpedantic | |
main : $(objects) | |
cc $(CCFLAGS) -o main $(objects) | |
.PHONY : clean | |
clean: | |
rm -f main $(objects) |
OlderNewer