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
Show hidden characters
{ | |
"cmd": ["fpc", "${file}"], | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"working_dir": "${file_path}", | |
"selector": "source.pas", | |
"variants": [ | |
{ | |
"name": "Run", | |
"cmd": ["$file_base_name"], |
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 closeCurrentWithoutSaving() { | |
if (app.activeDocument.length != 0) | |
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES); | |
} | |
function closeAllWithoutSaving() { | |
while (documents.length != 0) { | |
for (var i = 0x00; i < documents.length; i++) | |
documents[i].close(SaveOptions.DONOTSAVECHANGES); | |
} |
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 mechanize, sys | |
class DigiWebTextDT(object): | |
def __init__(self): | |
self.br = mechanize.Browser() | |
# might want to change the locale for your region | |
self.br.open("https://webtext.digicelgroup.com/loginForm.do?country_code=JAM&language_code=en") | |
def get_credentials(self): | |
pass |
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 json, urllib2 | |
response = urllib2.urlopen("http://media.vimcasts.org/videos/index.json") | |
data = json.load(response) | |
number_of_videos = data.keys() | |
number_of_videos.sort(key=int) | |
urls = [] | |
file_names = [] |
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
@echo off | |
REM http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/percent.mspx?mfr=true | |
start javaw %~n1 |
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 <Windows.h> | |
#include <iostream> | |
#include <string> | |
#include <conio.h> | |
std::string filename; | |
std::string parameters; | |
std::string new_filename; | |
std::string gcompiler = "g++"; |
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
@echo off | |
echo building.. | |
g++ -o core src/core.cpp -lfreeglut -lopengl32 -lglu32 -lglew32 | |
copy C:\lib\freeglut\freeglut.dll | |
copy C:\lib\glew32\glew32.dll | |
core.exe | |
echo cleaning.. |
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 <vector> | |
#include <stdio.h> | |
#include <string> | |
#include <cstring> | |
#include <iostream> | |
#include <glm/glm.hpp> | |
#include <glm/glm.hpp> | |
#include <glm/gtc/matrix_transform.hpp> |
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 <stdio.h> | |
#include <glm/glm.hpp> | |
#include <glm/gtc/matrix_transform.hpp> | |
#include <glm/gtc/type_ptr.hpp> | |
#include <GL/glew.h> | |
#include <GL/glfw.h> |
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> | |
typedef struct { | |
char t; | |
int x, y; | |
} swizzle; | |
swizzle image; |
OlderNewer