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)showIndexPath:(NSIndexPath*)indexPath inView:(UIView*)view{ | |
UILabel *lbl = [[UILabel alloc] init]; | |
lbl.text = [NSString stringWithFormat:@"%ld-%ld", (NSUInteger)indexPath.section, (NSUInteger)indexPath.item]; | |
lbl.font = [UIFont systemFontOfSize:8.f]; | |
lbl.numberOfLines = 0; | |
lbl.backgroundColor = [UIColor blackColor]; | |
lbl.textColor = [UIColor whiteColor]; | |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class RandomModelGenerator : MonoBehaviour { | |
public GameObject[] prefabs; | |
public int seed; | |
// Use this for initialization |
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
var app = require('app'); | |
var globalShortcut = require('global-shortcut'); | |
app.on('ready', function(){ | |
var win_space = globalShortcut.register('super+space', function(){ | |
console.log('This is rubbish!'); | |
}); | |
if(!win_space){ |
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
var app = require('app'); | |
var BrowserWindow = require('browser-window'); | |
var ipc = require('electron').ipcMain; | |
var dialog = require('dialog'); | |
var fs = require('fs'); | |
var editorWindow; | |
app.on('ready', function(){ |
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
var app = require('app'); | |
var BrowserWindow = require('browser-window'); | |
var ipc = require('electron').ipcMain; | |
var dialog = require('dialog'); | |
var fs = require('fs'); | |
var editorWindow; | |
app.on('ready', function(){ |
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
<!doctype html> | |
<html ng-app="editor"> | |
<head> | |
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css"/> | |
<script src="bower_components/ace-builds/src-min-noconflict/ace.js"></script> | |
<script src="bower_components/angular/angular.js"></script> | |
<script src="bower_components/angular-ui-ace/ui-ace.js"></script> | |
<script src="libs/ui-bootstrap-tpls-1.1.0.min.js"></script> |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Threading; | |
using System.Drawing; | |
using System.IO; | |
using Newtonsoft.Json; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; //Had to add this. | |
using System.Threading.Tasks; | |
namespace ConsoleApplication1 { | |
class Program { | |
static void Main(string[] args) { |
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
var pageWorkers = require("sdk/page-worker"); | |
pageWorker = pageWorkers.Page({ | |
contentURL: self.data.url("worker.html"), | |
contentScriptFile: [self.data.url('jquery-2.1.4.min.js'),self.data.url('worker.js')], | |
contentScriptWhen: "ready" | |
}); | |
pageWorker.port.on('command', function(cmd){ |
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
files: [ | |
'../lib/ionic/js/ionic.bundle.js', | |
'../lib/angular-mocks/angular-mocks.js', | |
'../js/**.js', | |
'./**.spec.js' | |
], |