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
# =============== # | |
# Unity generated # | |
# =============== # | |
Temp/ | |
Obj/ | |
UnityGenerated/ | |
Library/ | |
# ===================================== # | |
# Visual Studio / MonoDevelop generated # |
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> | |
int nums = 0; | |
%} | |
number [0-9] | |
%% |
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> | |
int longest = 0; | |
char *word = NULL; | |
%} | |
%option noyywrap |
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
SELECT s.sid, s.sname, m.dname, s.gpa, e.dname, e.cno, e.grade | |
FROM student s, enroll e, major m | |
WHERE s.sid = e.sid AND s.sid = m.sid AND | |
(SELECT AVG(e1.grade) | |
FROM enroll e1 | |
WHERE s.sid = e1.sid AND e1.dname in ( | |
SELECT m1.dname | |
FROM major m1 | |
WHERE s.sid = m1.sid)) < | |
(SELECT AVG(e2.grade) |
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
SELECT * | |
FROM (SELECT s.cno, s.dname | |
FROM section s, prof p, enroll e | |
WHERE s.cno = e.cno AND s.dname = p.dname AND s.dname = e.dname AND s.dname IN( | |
SELECT m.dname | |
FROM major m | |
GROUP BY m.dname | |
HAVING COUNT(*) > 8) | |
GROUP BY s.cno, s.dname |
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
SELECT cno, dname, b.count_of_students | |
FROM | |
(SELECT COUNT(*) AS num_of_students | |
FROM student s, enroll e | |
WHERE s.sid = e.sid) a, | |
( | |
SELECT c.cno, c.dname, COUNT(*) as count_of_students | |
FROM course c RIGHT OUTER JOIN enroll e | |
ON c.cno = e.cno | |
WHERE c.cno = e.cno AND c.dname = e.dname |
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 python | |
# ----------------------------------------------------------------------------- | |
# calc.py | |
# | |
# A simple calculator with variables. This is from O'Reilly's | |
# "Lex and Yacc", p. 63. | |
# | |
# Class-based example contributed to PLY by David McNab | |
# ----------------------------------------------------------------------------- |
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
# Xcode | |
.DS_Store | |
*/build/* | |
*.pbxuser | |
!default.pbxuser | |
*.mode1v3 | |
!default.mode1v3 | |
*.mode2v3 | |
!default.mode2v3 | |
*.perspectivev3 |
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 <Foundation/Foundation.h> | |
#if __IPHONE_OS_VERSION_MIN_REQUIRED < 80000 | |
@interface NSString (PSPDFModernizer) | |
// Added in iOS 8, retrofitted for iOS 7 | |
- (BOOL)containsString:(NSString *)aString; | |
@end |
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
/* | |
* CLI Tool to download streamable songs from SoundCloud API | |
* Requires Node.js, Flow-JS and cli libraries | |
*/ | |
var cli = require('cli').enable('status'), | |
fs = require('fs'), | |
flow = require('flow'), | |
path = require('path'), | |
SC = require('./node-soundcloud.js'); |
OlderNewer