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 UIKit | |
class CustomCollectionViewCell: UICollectionViewCell { | |
private lazy var label: UILabel = { | |
let view = UILabel() | |
view.translatesAutoresizingMaskIntoConstraints = false | |
view.font = UIFont.boldSystemFont(ofSize: 48) | |
view.textColor = .yellow | |
view.textAlignment = .center | |
return view |
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
#ifdef GL_ES | |
precision highp float; | |
#endif | |
uniform sampler2D u_sampler; | |
uniform float u_shininess; | |
varying vec3 v_normal; | |
varying vec4 v_color; | |
varying vec2 v_coord; |
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
#ifdef GL_ES | |
precision highp float; | |
#endif | |
uniform sampler2D u_sampler; | |
uniform float u_shininess; | |
varying vec3 v_normal; | |
varying vec4 v_color; | |
varying vec2 v_coord; |
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 <emscripten/emscripten.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
int pending_count = 0; | |
void onload(unsigned handle, void* arg, void* data, unsigned length) { | |
const char *text = (const char*)data; | |
printf("RECEIVED:\n[%s]\n[%i]\n", text, length); |
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 <emscripten/emscripten.h> | |
#include <emscripten/html5.h> | |
#include <GLES2/gl2.h> | |
#include <GLES2/gl2ext.h> | |
int main() | |
{ | |
EmscriptenWebGLContextAttributes attr; |
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
--2021-11-18 10:09:48-- https://downloads.sourceforge.net/project/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v9.0.0.tar.bz2 | |
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 204.68.111.105 | |
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|204.68.111.105|:443... connected. | |
ERROR: The certificate of 'downloads.sourceforge.net' is not trusted. | |
ERROR: The certificate of 'downloads.sourceforge.net' has expired. | |
MXE Warning! Downloading gendef from backup. | |
--2021-11-18 10:09:50-- https://mirror.mxe.cc/pkg/mingw-w64-v9.0.0.tar.bz2_1929b94b402f5ff4d7d37a9fe88daa9cc55515a6134805c104d1794ae22a4181 | |
Resolving mirror.mxe.cc (mirror.mxe.cc)... 104.131.71.203 | |
Connecting to mirror.mxe.cc (mirror.mxe.cc)|104.131.71.203|:443... connected. | |
ERROR: The certificate of 'mirror.mxe.cc' is not trusted. |
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
exec > /tmp/${PROJECT_NAME}_archive.log 2>&1 | |
UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal | |
if [ "true" == ${ALREADYINVOKED:-false} ] | |
then | |
echo "RECURSION: Detected, stopping" | |
else | |
export ALREADYINVOKED="true" |
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
<html> | |
<head> | |
</head> | |
<script type="text/javascript"> | |
function makeShort() | |
{ | |
var longUrl=document.getElementById("longurl").value; | |
var request = gapi.client.urlshortener.url.insert({ | |
'resource': { | |
'longUrl': longUrl |
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
/* | |
* CORRECTNESS: 100% | |
* PERFORMANCE: 50% | |
* | |
* FOR A 100% SOLUTION, SEE: | |
* https://codesays.com/2014/solution-to-triangle-by-codility/ | |
*/ | |
class Solution | |
{ |
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
/* | |
* EASIEST TEST OF ALL SO FAR... | |
*/ | |
import java.util.*; | |
class Solution | |
{ | |
public int solution(int[] A) | |
{ |
NewerOlder